1 unstable release
0.1.0 | May 30, 2023 |
---|
#38 in #switchboard
5KB
77 lines
solana_attestation_sdk
This is an onchain utility module for verifying Switchboard Functions.
Usage:
#[derive(Accounts)]
pub struct Example<'info> {
/// CHECK: todo
#[account(constraint = validate_fn_quote(&function, "e, &signer))]
pub function: AccountInfo<'info>,
/// CHECK: todo
pub quote: AccountInfo<'info>,
pub signer: Signer<'info>,
}
Dependencies
~19–29MB
~493K SLoC