-
Notifications
You must be signed in to change notification settings - Fork 419
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
"asset_entropy" wrong or missing for issuances #99
Comments
The mismatch is due to a somewhat confusing terminology used in rust-elements and cpp-elements that spilled into esplora. In rust-elements, for initial issuances, the The user-provided entropy is then hashed (using the fast merkle root algo) with the outpoint being spent by the issuance input to arrive at the asset entropy. cpp-elements's rpc converts the For re-issuances, the input contains the derived asset entropy directly, so there's no difference between cpp-elements and rust-elements. There's an unmerged PR to rust-elements which implements the fast merkle root algorithm, as well as the conversion from user-provided entropy and outpoint into the asset entropy, and from the asset entropy to the asset id. I'm already using it on a development branch that extends esplora's support for issued assets. Among other things, it computes the asset entropy/id and adds an But note that this will probably only be deployed on blockstream.info once the PR to rust-elements is merged. In the meanwhile, if you have a fast merkle root implementation in your environment (or willing to write one), you could compute the asset entropy yourself using the data currently available from the esplora api. |
The issuance input JSON format was changed as following: - Added a `contract_hash` field with the user-provided entropy of initial issuances. This field is not available for reissuances. - Changed `asset_entropy` to contain the asset entropy derived from the user-provided entropy and the prevout. This only effects initial issuances. Refs Blockstream/esplora#99
Implemented the changes in shesek/electrs@5942c83. |
And update the relevant docs. Refs shesek/electrs@5942c83, Blockstream#99
The issuance input JSON format was changed as following: - Added a `contract_hash` field with the user-provided entropy of initial issuances. This field is not available for reissuances. - Changed `asset_entropy` to contain the asset entropy derived from the user-provided entropy and the prevout. This only effects initial issuances. Refs Blockstream/esplora#99
And update the relevant docs. Refs shesek/electrs@5942c83, Blockstream#99
The issuance input JSON format was changed as following: - Added a `contract_hash` field with the user-provided entropy of initial issuances. This field is not available for reissuances. - Changed `asset_entropy` to contain the asset entropy derived from the user-provided entropy and the prevout. This only effects initial issuances. Refs Blockstream/esplora#99
The issuance input JSON format was changed as following: - Added a `contract_hash` field with the user-provided entropy of initial issuances. This field is not available for reissuances. - Changed `asset_entropy` to contain the asset entropy derived from the user-provided entropy and the prevout. This only effects initial issuances. Refs Blockstream/esplora#99
And update the relevant docs. Refs shesek/electrs@5942c83, Blockstream#99
And update the relevant docs. Refs shesek/electrs@5942c83, Blockstream#99
@valerio-vaccaro I'm closing, please report back if you're still having trouble. |
The issuance input JSON format was changed as following: - Added a `contract_hash` field with the user-provided entropy of initial issuances. This field is not available for reissuances. - Changed `asset_entropy` to contain the asset entropy derived from the user-provided entropy and the prevout. This only effects initial issuances. Refs Blockstream/esplora#99
In order to validate an issuance transaction, the liquid-core give you the asset_entropy value that you can use to calculate asset_id and reissuance_token_id. Esplora shows you this information via the API but the value is missing or wrong.
e.g.issuance tx a89e97e9eec81802d65a8f013133267705c2bd249d46ba85f77cdf52778a0ffb
issuance tx d535ded7ce07a0bb9c61d0fefff8127da3fc4833302b05e2b8a0cf9e04446af1
The text was updated successfully, but these errors were encountered: