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
No known key found for this signature in database
GPG key ID: F9F1386DB1E119B6
10 changed files with 10 additions and 15 deletions

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -1,6 +1,6 @@
use rand_core::{RngCore, CryptoRng};
use ff::Field;
use group::ff::Field;
use multiexp::BatchVerifier;

View file

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

View file

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

View file

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

View file

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