Skip to main content

create_nullifier

Function create_nullifier 

Source
pub fn create_nullifier<'info>(
    ctx: Context<'_, '_, '_, 'info, GenericAnchorAccounts<'info>>,
    proof: ValidityProof,
    address_tree_info: PackedAddressTreeInfo,
    output_state_tree_index: u8,
    id: [u8; 32],
) -> Result<()>
Expand description

Creates a rent-free PDA derived from id. If the id has been used before, the PDA already exists, causing the instruction to fail.