Replace FROST's ff/group usage with just group

This commit is contained in:
Luke Parker
2022-06-19 06:36:47 -04:00
parent 5da1b4fcf8
commit 382ff75455
10 changed files with 10 additions and 15 deletions

View File

@@ -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"] }

View File

@@ -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;

View File

@@ -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}};

View File

@@ -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};

View File

@@ -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;

View File

@@ -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;

View File

@@ -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;

View File

@@ -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};

View File

@@ -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,

View File

@@ -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},