Skip to main content

commonware_consensus/simplex/scheme/
secp256r1.rs

1//! Secp256r1 implementation of the [`Scheme`] trait for `simplex`.
2//!
3//! [`Scheme`] is **attributable**: individual signatures can be safely
4//! presented to some third party as evidence of either liveness or of committing a fault.
5//! Certificates contain signer indices alongside individual signatures,
6//! enabling secure per-validator activity tracking and fault detection.
7//!
8//! Unlike Ed25519 and BLS12-381, Secp256r1 does not benefit from batch verification,
9//! so the batcher will verify signatures immediately as they arrive rather than
10//! waiting to batch them.
11
12use crate::simplex::{scheme::Namespace, types::Subject};
13use commonware_cryptography::impl_certificate_secp256r1;
14
15impl_certificate_secp256r1!(Subject<'a, D>, Namespace);