Skip to main content

token_burn_from_pool_extra_sighash_data

Function token_burn_from_pool_extra_sighash_data 

Source
pub fn token_burn_from_pool_extra_sighash_data(
    token_id: &[u8; 32],
    burner_id: &[u8; 32],
    amount: u64,
    platform_version: &PlatformVersion,
) -> Result<Vec<u8>, ProtocolError>
Expand description

Extra sighash data of a batch TokenBurnFromPool: the token id, the burner and the amount destroyed, so a bundle proven for one burn cannot be replayed for another token, burner or amount (72 bytes; no other layout has that length).

burner_id is the identity the burn is attributed to: the batch owner of a direct burn, or the proposer of a group action burn. A group action pins the digest of the bundle’s actions (spend authorization signatures included), so every other signer submits the proposer’s bundle unchanged and the sighash must not depend on whose batch carries it.