Skip to main content

Crate jiminy_multisig

Crate jiminy_multisig 

Source
Expand description

§jiminy-multisig

M-of-N signer threshold checks.

Verify that at least M out of N configured signers have signed the current transaction, with built-in duplicate-signer prevention. No heap allocation – the signer set is walked in-place.

Re-exports§

pub use pinocchio;

Functions§

check_all_signers
Require ALL provided accounts to be signers (N-of-N).
check_any_signer
Require exactly one of the provided accounts to be a signer (1-of-N).
check_threshold
Require at least threshold of the provided accounts to be signers.
count_signers
Count how many accounts in the slice are transaction signers.