Add embedwards25519 curve

This commit is contained in:
Luke Parker
2024-07-24 02:46:25 -04:00
parent 7710da4db3
commit fa31f26397
11 changed files with 872 additions and 2 deletions

View File

@@ -1,3 +1,6 @@
# secq256k1
An implementation of the curve secp256k1 cycles with.
Scalars are encoded as little-endian and field elements are encoded as
big-endian.

View File

@@ -7,8 +7,8 @@ use crypto_bigint::{
const MODULUS_STR: &str = "FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFEFFFFFC2F";
impl_modulus!(HelioseleneQ, U256, MODULUS_STR);
type ResidueType = Residue<HelioseleneQ, { HelioseleneQ::LIMBS }>;
impl_modulus!(SecQ, U256, MODULUS_STR);
type ResidueType = Residue<SecQ, { SecQ::LIMBS }>;
/// The Scalar field of secq256k1.
///