1
0
Fork 0
mirror of https://github.com/bitcoin/bips.git synced 2025-03-03 18:57:18 +01:00

fixup! bip-tap: correct asset_tree_root usage

This commit is contained in:
Gijs van Dam 2024-03-25 13:48:15 +01:00
parent deffebf4f7
commit 165fab1ce4
No known key found for this signature in database
GPG key ID: 019A44857735FD20

View file

@ -215,7 +215,7 @@ represented as a Tapscript tree that commits to a single unique leaf of:
* <code>tagged_hash("TapLeaf", leaf_version || taproot_asset_marker || taproot_asset_version || asset_tree_root || sum_value)</code>
where:
* <code>taproot_asset_marker</code> is the <code>sha256</code> hash of the ascii string "taproot-assets".
* <code>taproot_asset_marker</code> is the <code>sha256</code> hash of the ascii string "taproot-assets:194243".
* <code>taproot_asset_version</code> is the version of the Taproot Assets system which defines how the remainder of the commitment value is to be interpreted.
* <code>asset_tree_root</code> is the 32-byte <code>sha256</code> root hash of the asset tree.
* <code>sum_value</code> is the 8-byte sum of the <code>amt</code> values of each of the asset leaves.