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
The Rust tool in the repo that compiles the asset registry should be augmented so that it can also produce this data. That should be fairly straightforward since this is a subset of the data it already produces.
One thing that would be good to do is ensure that the list of assets is sorted by lexicographic byte order on the asset ID. This will allow C code that consumes the array to efficiently traverse even large asset lists, by performing a binary search on the asset IDs rather than having to do a linear scan.
For a Ledger app, we want to have a hardcoded asset registry with the following data:
The Zondax team suggested a structure like
The Rust tool in the repo that compiles the asset registry should be augmented so that it can also produce this data. That should be fairly straightforward since this is a subset of the data it already produces.
One thing that would be good to do is ensure that the list of assets is sorted by lexicographic byte order on the asset ID. This will allow C code that consumes the array to efficiently traverse even large asset lists, by performing a binary search on the asset IDs rather than having to do a linear scan.
cc @redshiftzero
The text was updated successfully, but these errors were encountered: