mirror of
https://github.com/d0zingcat/ore.git
synced 2026-06-02 15:11:17 +00:00
update comment
This commit is contained in:
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user