solana_sdk::secp256k1_instruction

Function verify

Source
pub fn verify(
    data: &[u8],
    instruction_datas: &[&[u8]],
    _feature_set: &FeatureSet,
) -> Result<(), PrecompileError>
Expand description

Verifies the signatures specified in the secp256k1 instruction data.

This is same the verification routine executed by the runtime’s secp256k1 native program, and is primarily of use to the runtime.

data is the secp256k1 program’s instruction data. instruction_datas is the full slice of instruction datas for all instructions in the transaction, including the secp256k1 program’s instruction data.

feature_set is the set of active Solana features. It is used to enable or disable a few minor additional checks that were activated on chain subsequent to the addition of the secp256k1 native program. For many purposes passing FeatureSet::all_enabled() is reasonable.