pub struct Proof {Show 17 fields
pub version: u32,
pub prev_out: OutPoint,
pub block_header: Header,
pub block_height: u32,
pub anchor_tx: Transaction,
pub tx_merkle_proof: TxMerkleProof,
pub asset: Asset,
pub inclusion_proof: TaprootProof,
pub exclusion_proofs: Vec<TaprootProof>,
pub split_root_proof: Option<TaprootProof>,
pub meta_reveal: Option<MetaReveal>,
pub additional_inputs: Vec<File>,
pub challenge_witness: Option<Witness>,
pub genesis_reveal: Option<GenesisReveal>,
pub group_key_reveal: Option<GroupKeyReveal>,
pub alt_leaves: Vec<Asset>,
pub unknown_odd_types: BTreeMap<u64, Vec<u8>>,
}Fields§
§version: u32Version is the version of the state transition proof.
prev_out: OutPointPrevOut is the previous on-chain outpoint of the asset. This outpoint is that of the first on-chain input. Outpoints which correspond to the other inputs can be found in AdditionalInputs.
block_header: HeaderBlockHeader is the current block header committing to the on-chain transaction attempting an asset state transition.
block_height: u32BlockHeight is the height of the current block committing to the on-chain transaction attempting an asset state transition.
anchor_tx: TransactionAnchorTx is the on-chain transaction attempting the asset state transition.
tx_merkle_proof: TxMerkleProofTxMerkleProof is the merkle proof for AnchorTx used to prove its inclusion within BlockHeader.
asset: AssetAsset is the resulting asset after its state transition.
inclusion_proof: TaprootProofInclusionProof is the TaprootProof proving the new inclusion of the resulting asset within AnchorTx.
exclusion_proofs: Vec<TaprootProof>ExclusionProofs is the set of TaprootProofs proving the exclusion of the resulting asset from all other Taproot outputs within AnchorTx.
split_root_proof: Option<TaprootProof>SplitRootProof is an optional TaprootProof needed if this asset is the result of a split. SplitRootProof proves inclusion of the root asset of the split.
meta_reveal: Option<MetaReveal>MetaReveal is the data that was revealed to prove the derivation of the meta data hash contained in the genesis asset.
NOTE: This field is optional, and can only be specified if the asset above is a genesis asset. If specified, then verifiers should also verify the hashes match up.
additional_inputs: Vec<File>AdditionalInputs is a nested full proof for any additional inputs found within the resulting asset.
challenge_witness: Option<Witness>ChallengeWitness is an optional virtual transaction witness that serves as an ownership proof for the asset. If this is non-nil, then it is a valid transfer witness for a 1-input, 1-output virtual transaction that spends the asset in this proof and sends it to the NUMS key, to prove that the creator of the proof is able to produce a valid signature to spend the asset.
genesis_reveal: Option<GenesisReveal>GenesisReveal is the Genesis information for an asset, that must be provided for minting proofs, and must be empty for non-minting proofs. This allows for derivation of the asset ID. If the asset is part of an asset group, the Genesis information is also used for re-derivation of the asset group key.
group_key_reveal: Option<GroupKeyReveal>GroupKeyReveal contains the data required to derive the final tweaked group key for an asset group.
NOTE: This field is mandatory for the group anchor (i.e., the initial minting tranche of an asset group). Subsequent minting tranches require only a valid signature for the previously revealed group key.
alt_leaves: Vec<Asset>AltLeaves represent data used to construct an Asset commitment, that was inserted in the output anchor Tap commitment. These data-carrying leaves are used for a purpose distinct from representing individual Taproot Assets.
unknown_odd_types: BTreeMap<u64, Vec<u8>>UnknownOddTypes is a map of unknown odd types that were encountered during decoding. This map is used to preserve unknown types that we don’t know of yet, so we can still encode them back when serializing. This enables forward compatibility with future versions of the protocol as it allows new odd (optional) types to be added without breaking old clients that don’t yet fully understand them.