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

Standardize token denominations #111

Open
gudnuf opened this issue Apr 18, 2024 · 1 comment
Open

Standardize token denominations #111

gudnuf opened this issue Apr 18, 2024 · 1 comment

Comments

@gudnuf
Copy link
Collaborator

gudnuf commented Apr 18, 2024

NUT 00 references NUT 01:

"unit is the currency unit of the token keysets (see Keysets for supported units)"

But, there is nothing in NUT 01 that I see that mentions supported units.

We need to have standard units along with standard token denominations so that wallets can transmit the correct amount of value.

I propose adding the following to NUT 01:

Standard Token Denominations and Units

The following shows supported units and their corresponding token values.

Unit Token Value
'sat' 1 sat
'usd' 0.001 cents
@AngusP
Copy link
Contributor

AngusP commented Apr 22, 2024

We need to have standard units along with standard token denominations

Makes sense for known units, but IMO wallets/mints should gracefully handle a unit they don't recognise as it feels pretty inevitable that someone will run a mint for random different currencies or coupons - i.e. the unit is open-ended

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants