spl_account_compression::spl_account_compression

Function verify_leaf

source
pub fn verify_leaf(
    ctx: Context<'_, '_, '_, '_, VerifyLeaf<'_>>,
    root: [u8; 32],
    leaf: [u8; 32],
    index: u32,
) -> Result<()>
Expand description

Verifies a provided proof and leaf. If invalid, throws an error.