update comment

This commit is contained in:
Hardhat Chad
2024-07-26 22:58:12 +00:00
parent 722398f137
commit c26fde97cc

View File

@@ -8,16 +8,11 @@ use solana_program::{
serialize_utils::{read_pubkey, read_u16, read_u8}, serialize_utils::{read_pubkey, read_u16, read_u8},
}; };
/// DeclareProof is used by other instructions in the same transaction. /// Auth is used to authenticate a proof account address via transaction introspection.
/// - Other instructions will use transaction introspection to ensure they
/// only process the declared proof.
/// - Other instructions will use find_and_parse_declared_proof with the
/// introspection data
/// ///
/// Safety requirements: /// Safety requirements:
/// - No safety requirements are required in this instruction to keep cu's as /// - No safety requirements are required in this instruction to keep CUs low.
/// low as possible. Other instructions that use the declared proof handle /// - Other instructions are expected to validate the provided account is a valid proof.
/// validation via the loader.
/// - Only one account should be provided. /// - Only one account should be provided.
pub fn process_auth<'a, 'info>(accounts: &'a [AccountInfo<'info>], _data: &[u8]) -> ProgramResult { pub fn process_auth<'a, 'info>(accounts: &'a [AccountInfo<'info>], _data: &[u8]) -> ProgramResult {
let [_proof_info] = accounts else { let [_proof_info] = accounts else {