| Crates.io | solana_attestation_sdk |
| lib.rs | solana_attestation_sdk |
| version | 0.1.0 |
| created_at | 2023-05-30 02:12:32.876731+00 |
| updated_at | 2023-05-30 02:12:32.876731+00 |
| description | Solana attestation sdk for verifying Switchboard Functions |
| homepage | https://docs.switchboard.xyz |
| repository | https://github.com/switchboard-xyz/solana_attestation_sdk |
| max_upload_size | |
| id | 877486 |
| size | 4,452 |
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>,
}