mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 04:09:23 +00:00
Smash Ciphersuite definitions into their own crates
Uses dalek-ff-group for Ed25519 and Ristretto. Uses minimal-ed448 for Ed448. Adds ciphersuite-kp256 for Secp256k1 and P-256.
This commit is contained in:
@@ -36,7 +36,7 @@ rand_core = { version = "0.6", features = ["std"] }
|
||||
sha2 = "0.10"
|
||||
|
||||
dalek-ff-group = { path = "../dalek-ff-group" }
|
||||
ciphersuite = { path = "../ciphersuite", features = ["ed25519"] }
|
||||
ciphersuite = { path = "../ciphersuite" }
|
||||
|
||||
[features]
|
||||
aggregate = ["transcript"]
|
||||
|
||||
@@ -3,9 +3,10 @@ use core::ops::Deref;
|
||||
use zeroize::Zeroizing;
|
||||
use rand_core::OsRng;
|
||||
|
||||
use dalek_ff_group::Ed25519;
|
||||
use ciphersuite::{
|
||||
group::{ff::Field, Group},
|
||||
Ciphersuite, Ed25519,
|
||||
Ciphersuite,
|
||||
};
|
||||
use multiexp::BatchVerifier;
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
|
||||
use sha2::{Digest, Sha512};
|
||||
|
||||
use dalek_ff_group::Scalar;
|
||||
use ciphersuite::{group::GroupEncoding, Ciphersuite, Ed25519};
|
||||
use dalek_ff_group::{Scalar, Ed25519};
|
||||
use ciphersuite::{group::GroupEncoding, Ciphersuite};
|
||||
|
||||
use crate::SchnorrSignature;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user