Module signature

Module signature 

Source
Expand description

Mina signature structure and associated helpers

This module provides the core signature functionality for the Mina protocol. Signatures in Mina are based on Schnorr signatures over elliptic curves, specifically using the Pallas curve and its associated scalar field.

The signature scheme is compatible with the signature scheme used in the Mina protocol, and follows the standard Schnorr signature construction.

§Examples

use mina_signer::{Signature, BaseField, ScalarField};

// Create a new signature from field elements
let rx = BaseField::from(42u64);
let s = ScalarField::from(123u64);
let signature = Signature::new(rx, s);

// Display signature as hexadecimal string
println!("Signature: {}", signature);

Structs§

Signature
A Schnorr signature for the Mina protocol.