make_burn_call

Function make_burn_call 

Source
pub fn make_burn_call(
    coins: Vec<OwnCoin>,
    tree: MerkleTree,
    burn_zkbin: ZkBinary,
    burn_pk: ProvingKey,
) -> Result<(MoneyBurnParamsV1, BurnCallDebris, Vec<OwnCoin>)>
Expand description

Make a simple burn call to permanently destroy coins.

  • coins: Set of OwnCoin we’re given to burn in this call
  • tree: Merkle tree of coins used to create inclusion proofs
  • burn_zkbin: Burn_V1 zkas circuit ZkBinary
  • burn_pk: Proving key for the Burn_V1 zk circuit

Returns a tuple of:

  • The actual call data
  • Secret values such as blinds
  • A list of the spent coins