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

bip-tap: BIPs for the Taproot Assets Protocol #1489

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bip tap: move asset_id reveal to proof file
  • Loading branch information
halseth authored and Roasbeef committed Oct 17, 2023
commit 373551d7d964893bd49c8daa1a59e8abca8951cb
12 changes: 12 additions & 0 deletions bip-tap-proof-file.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,16 @@ blob with the following format:
* type: 22 (<code>block_height</code>)
** value:
*** [<code>uint32</code>:<code>block_height</code>]
* type: 12 (<code>asset_genesis</code>)
** value:
*** [<code>32*byte</code>:<code>first_prev_out_hash</code>]
*** [<code>u32</code>:<code>first_prev_out_index</code>]
*** [<code>BigSize</code>:<code>tag_len</code>]
*** [<code>tag_len*byte</code>:<code>tag</code>]
*** [<code>BigSize</code>:<code>metadata_len</code>]
*** [<code>metadata_len*byte</code>:<code>metadata</code>]
*** [<code>u32</code>:<code>output_index</code>]
*** [<code>u8</code>:<code>type</code>]

where:
* <code>version</code>: is the version of the single mint or transition proof, currently fixed to value <code>0</code>.
Expand All @@ -162,6 +172,8 @@ where:
*** This field MUST only be present for genesis asset proofs.
* <code>challenge_witness</code> is an optional asset witness over a well-defined asset state transition that proves ownership of the <code>script_key</code> the asset currently resides at.
* <code>block_height</code>: is the block height of the block that includes a spend of the <code>prev_out</code> outpoint.
* <code>asset_genesis</code>: is a mandatory field for genesis assets. The <code>asset_genesis</code> represents the preimage of the <code>asset_id</code>.
** This field MUST only be present for genesis asset proofs.

The final flat proof file has the following format:
* [<code>u32</code>:<code>file_version</code>] version of proof file format, currently fixed to <code>0</code>.
Expand Down
1 change: 0 additions & 1 deletion bip-tap.mediawiki
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,6 @@ specification):
where:

* <code>taproot_asset_version</code>: is a single byte that denotes the version of Taproot Asset being used, which allows a client to determine which of the below TLV values to expect.
* <code>asset_genesis</code>: is the <code>asset_genesis</code> defined above, representing the preimage of the <code>asset_id</code>.
* <code>asset_type</code>: is a single byte representing the type of the asset, two starting asset types are defined:
** <code>0</code>: a normal asset
** <code>1</code>: a collectible asset
Expand Down