Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Quote ID #7

Open
mtbitcr opened this issue Jan 16, 2025 · 2 comments
Open

Quote ID #7

mtbitcr opened this issue Jan 16, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@mtbitcr
Copy link
Contributor

mtbitcr commented Jan 16, 2025

The quota ID for the bill of exchange will be equal to the bill of exchange ID + endorser ID.

@mtbitcr mtbitcr added this to Mint Sep 18, 2024
@mtbitcr mtbitcr converted this from a draft issue Jan 16, 2025
@mtbitcr mtbitcr added the enhancement New feature or request label Jan 21, 2025
@codingpeanut157
Copy link
Collaborator

We can use Uuid::new_v5 function with

Uuid::new_v5(&Uuid::NAMESPACE_URL, b.as_bytes());

where combination is

let combination = fmt!("{}-{}", billID, endorserID);

Or any other sort of serialized combination of bilID and endorserID

@codingpeanut157
Copy link
Collaborator

🤔

actually no,
quoteID needs to add some randomness to the billID/endorserID combination
Otherwise the keys that pre-sign the ecash tokens are going to be the same.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

2 participants