Skip to main content

Module ecdsa_k256_keccak

Module ecdsa_k256_keccak 

Source
Expand description

ECDSA secp256k1 with Keccak256 signature helpers.

Functions in this module generate data for the miden::core::crypto::dsa::ecdsa_k256_keccak::verify MASM procedure.

Functionsยง

encode_signature
Encodes the provided public key and signature into a vector of field elements in the format expected by miden::core::crypto::dsa::ecdsa_k256_keccak::verify procedure.
sign
Signs the provided message with the supplied secret key and encodes this signature and the associated public key into a vector of field elements in the format expected by miden::core::crypto::dsa::ecdsa_k256_keccak::verify procedure.