#solana #switchboard #oracle

solana_attestation_sdk

Solana attestation sdk for verifying Switchboard Functions

1 unstable release

0.1.0 May 30, 2023

#38 in #switchboard

MIT license

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, &quote, &signer))]
    pub function: AccountInfo<'info>,
    /// CHECK: todo
    pub quote: AccountInfo<'info>,
    pub signer: Signer<'info>,
}

Dependencies

~20–29MB
~507K SLoC