mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 12:19:24 +00:00
Replace FROST's ff/group usage with just group
This commit is contained in:
@@ -16,7 +16,6 @@ hex = "0.4"
|
|||||||
|
|
||||||
sha2 = { version = "0.10", optional = true }
|
sha2 = { version = "0.10", optional = true }
|
||||||
|
|
||||||
ff = "0.12"
|
|
||||||
group = "0.12"
|
group = "0.12"
|
||||||
|
|
||||||
elliptic-curve = { version = "0.12", features = ["hash2curve"], optional = true }
|
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 }
|
k256 = { version = "0.11", features = ["arithmetic", "hash2curve"], optional = true }
|
||||||
dalek-ff-group = { path = "../dalek-ff-group", 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"] }
|
multiexp = { path = "../multiexp", features = ["batch"] }
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ use rand_core::{RngCore, CryptoRng};
|
|||||||
|
|
||||||
use sha2::{Digest, Sha512};
|
use sha2::{Digest, Sha512};
|
||||||
|
|
||||||
use ff::PrimeField;
|
use group::{ff::PrimeField, Group};
|
||||||
use group::Group;
|
|
||||||
|
|
||||||
use dalek_ff_group::Scalar;
|
use dalek_ff_group::Scalar;
|
||||||
|
|
||||||
|
|||||||
@@ -4,8 +4,7 @@ use rand_core::{RngCore, CryptoRng};
|
|||||||
|
|
||||||
use sha2::{digest::Update, Digest, Sha256};
|
use sha2::{digest::Update, Digest, Sha256};
|
||||||
|
|
||||||
use ff::{Field, PrimeField};
|
use group::{ff::{Field, PrimeField}, Group, GroupEncoding};
|
||||||
use group::{Group, GroupEncoding};
|
|
||||||
|
|
||||||
use elliptic_curve::{bigint::{Encoding, U384}, hash2curve::{Expander, ExpandMsg, ExpandMsgXmd}};
|
use elliptic_curve::{bigint::{Encoding, U384}, hash2curve::{Expander, ExpandMsg, ExpandMsgXmd}};
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use std::collections::HashMap;
|
|||||||
|
|
||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::{Field, PrimeField};
|
use group::ff::{Field, PrimeField};
|
||||||
|
|
||||||
use multiexp::{multiexp_vartime, BatchVerifier};
|
use multiexp::{multiexp_vartime, BatchVerifier};
|
||||||
|
|
||||||
|
|||||||
@@ -5,8 +5,7 @@ use thiserror::Error;
|
|||||||
|
|
||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::{Field, PrimeField};
|
use group::{ff::{Field, PrimeField}, Group, GroupOps};
|
||||||
use group::{Group, GroupOps};
|
|
||||||
|
|
||||||
mod schnorr;
|
mod schnorr;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::Field;
|
use group::ff::Field;
|
||||||
|
|
||||||
use multiexp::BatchVerifier;
|
use multiexp::BatchVerifier;
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ use std::{sync::Arc, collections::HashMap};
|
|||||||
|
|
||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::Field;
|
use group::ff::Field;
|
||||||
|
|
||||||
use transcript::Transcript;
|
use transcript::Transcript;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::Field;
|
use group::{ff::Field, Group};
|
||||||
use group::Group;
|
|
||||||
|
|
||||||
use crate::{Curve, MultisigKeys, tests::key_gen};
|
use crate::{Curve, MultisigKeys, tests::key_gen};
|
||||||
|
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use std::{sync::Arc, collections::HashMap};
|
|||||||
|
|
||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::Field;
|
use group::ff::Field;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Curve,
|
Curve,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ use std::{marker::PhantomData, sync::Arc, collections::HashMap};
|
|||||||
|
|
||||||
use rand_core::{RngCore, CryptoRng};
|
use rand_core::{RngCore, CryptoRng};
|
||||||
|
|
||||||
use ff::Field;
|
use group::ff::Field;
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
Curve, MultisigKeys, schnorr::{self, SchnorrSignature}, algorithm::{Hram, Schnorr},
|
Curve, MultisigKeys, schnorr::{self, SchnorrSignature}, algorithm::{Hram, Schnorr},
|
||||||
|
|||||||
Reference in New Issue
Block a user