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);Re-exportsยง
use crate::BaseField;๐use crate::ScalarField;๐use ark_ff::One;๐use core::fmt;๐use o1_utils::FieldHelpers;๐
Structsยง
- Signature
- A Schnorr signature for the Mina protocol.