You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a simple variant to: #479. Rather than introduce 128-bit integers, which'll need some custom DB extensions to support properly, we instead aim to go with a simpler approach, leaving room for future protocol versions to go with a 128-bit sum value.
Steps To Completion
Enforce a max issuance value of a 32-bit value. This just restricts the amount that a single issuance UTXO can create. A single transaction can create more units with bundled UTXOs in the some genesis transaction. Most assets won't feasibly run through the entire 64-bit unit space. For the Universe issuance trees for grouped assets, the limit applies there as well.
Modify the Universe transfer tree to use a sum value of 1 everywhere. This makes the value more useful, as it's no longer summing different units. Instead it represents a count of the total number of registered transfers.
Split the issuance + transfer trees across the RPC API and database. This simplifies syncing, as you have two roots, if one isn't present, then you know that they don't have transfers or otherwise.
The text was updated successfully, but these errors were encountered:
This is a step towards fixing:
lightninglabs#544.
In this commit, we limit the max amount of an asset that can be issued
at one time to math.MaxUint32. The existing 32-bit sum is left in place.
This gives us enough buffer room, as we'd need 4 billion UTXOs of the
same assets to overflow the root sum. In the future, we can lift this
limit with future asset versions.
An asset can have more than 4 billion ish units if they issue with
distinct UTXOs. This value can be viewed as the max amt that can be
issued in a single tranche.
This is a step towards fixing:
lightninglabs#544.
In this commit, we limit the max amount of an asset that can be issued
at one time to math.MaxUint32. The existing 32-bit sum is left in place.
This gives us enough buffer room, as we'd need 4 billion UTXOs of the
same assets to overflow the root sum. In the future, we can lift this
limit with future asset versions.
An asset can have more than 4 billion ish units if they issue with
distinct UTXOs. This value can be viewed as the max amt that can be
issued in a single tranche.
This is a simple variant to: #479. Rather than introduce 128-bit integers, which'll need some custom DB extensions to support properly, we instead aim to go with a simpler approach, leaving room for future protocol versions to go with a 128-bit sum value.
Steps To Completion
The text was updated successfully, but these errors were encountered: