mirror of
https://github.com/serai-dex/serai.git
synced 2025-03-25 08:39:04 +00:00
Replace FROST's ff/group usage with just group
This commit is contained in:
parent
5da1b4fcf8
commit
382ff75455
10 changed files with 10 additions and 15 deletions
crypto/frost
|
@ -16,7 +16,6 @@ hex = "0.4"
|
|||
|
||||
sha2 = { version = "0.10", optional = true }
|
||||
|
||||
ff = "0.12"
|
||||
group = "0.12"
|
||||
|
||||
elliptic-curve = { version = "0.12", features = ["hash2curve"], optional = true }
|
||||
|
@ -24,7 +23,7 @@ p256 = { version = "0.11", features = ["arithmetic", "hash2curve"], optional = t
|
|||
k256 = { version = "0.11", features = ["arithmetic", "hash2curve"], optional = true }
|
||||
dalek-ff-group = { path = "../dalek-ff-group", optional = true }
|
||||
|
||||
transcript = { path = "../transcript" }
|
||||
transcript = { package = "transcript-trait", path = "../transcript" }
|
||||
|
||||
multiexp = { path = "../multiexp", features = ["batch"] }
|
||||
|
||||
|
|
|
@ -4,8 +4,7 @@ use rand_core::{RngCore, CryptoRng};
|
|||
|
||||
use sha2::{Digest, Sha512};
|
||||
|
||||
use ff::PrimeField;
|
||||
use group::Group;
|
||||
use group::{ff::PrimeField, Group};
|
||||
|
||||
use dalek_ff_group::Scalar;
|
||||
|
||||
|
|
|
@ -4,8 +4,7 @@ use rand_core::{RngCore, CryptoRng};
|
|||
|
||||
use sha2::{digest::Update, Digest, Sha256};
|
||||
|
||||
use ff::{Field, PrimeField};
|
||||
use group::{Group, GroupEncoding};
|
||||
use group::{ff::{Field, PrimeField}, Group, GroupEncoding};
|
||||
|
||||
use elliptic_curve::{bigint::{Encoding, U384}, hash2curve::{Expander, ExpandMsg, ExpandMsgXmd}};
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::collections::HashMap;
|
|||
|
||||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::{Field, PrimeField};
|
||||
use group::ff::{Field, PrimeField};
|
||||
|
||||
use multiexp::{multiexp_vartime, BatchVerifier};
|
||||
|
||||
|
|
|
@ -5,8 +5,7 @@ use thiserror::Error;
|
|||
|
||||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::{Field, PrimeField};
|
||||
use group::{Group, GroupOps};
|
||||
use group::{ff::{Field, PrimeField}, Group, GroupOps};
|
||||
|
||||
mod schnorr;
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::Field;
|
||||
use group::ff::Field;
|
||||
|
||||
use multiexp::BatchVerifier;
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@ use std::{sync::Arc, collections::HashMap};
|
|||
|
||||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::Field;
|
||||
use group::ff::Field;
|
||||
|
||||
use transcript::Transcript;
|
||||
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::Field;
|
||||
use group::Group;
|
||||
use group::{ff::Field, Group};
|
||||
|
||||
use crate::{Curve, MultisigKeys, tests::key_gen};
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::{sync::Arc, collections::HashMap};
|
|||
|
||||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::Field;
|
||||
use group::ff::Field;
|
||||
|
||||
use crate::{
|
||||
Curve,
|
||||
|
|
|
@ -2,7 +2,7 @@ use std::{marker::PhantomData, sync::Arc, collections::HashMap};
|
|||
|
||||
use rand_core::{RngCore, CryptoRng};
|
||||
|
||||
use ff::Field;
|
||||
use group::ff::Field;
|
||||
|
||||
use crate::{
|
||||
Curve, MultisigKeys, schnorr::{self, SchnorrSignature}, algorithm::{Hram, Schnorr},
|
||||
|
|
Loading…
Reference in a new issue