new_secp256k1_instruction (src/secp256k1_instruction.rs)

solana · sdk/src/secp256k1_instruction.rs · rust · Apache-2.0
integration, Integration / API

Utility to construct secp256k1 signature verification instructions for Solana programs.

// Source: https://github.com/solana-labs/solana | License: Apache-2.0
// Provided via justclaw.it.com; keep this notice with the code.
//! Instructions for the [secp256k1 native program][np].
//!
//! [np]: https://docs.solanalabs.com/runtime/programs#secp256k1-program
//!
//! _This module provides low-level cryptographic building blocks that must be
//! used carefully to ensure proper security. Read this documentation and
//! accompanying links thoroughly._
//!
//! The secp26k1 native program peforms flexible verification of [secp256k1]
//! ECDSA signatures, as used by Ethereum. It can verify up to 255 signatures on
//! up to 255 messages, with those signatures, messages, and their public keys
//! arbitrarily distributed across the instruction data of any instructions in
//! the same tran

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key