Reorganize FROST's handling of curves

This commit is contained in:
Luke Parker
2022-06-24 19:47:19 -04:00
parent 6775fb471e
commit 60254a0171
18 changed files with 165 additions and 154 deletions

View File

@@ -6,11 +6,10 @@ use curve25519_dalek::{constants::ED25519_BASEPOINT_TABLE, scalar::Scalar};
use dalek_ff_group as dfg;
use transcript::RecommendedTranscript;
use frost::MultisigKeys;
use frost::{curve::Ed25519, MultisigKeys};
use monero::{PublicKey, network::Network, util::address::Address};
use monero_serai::{
frost::Ed25519,
transaction::{Timelock, Transaction},
rpc::Rpc,
wallet::{Fee, SpendableOutput, SignableTransaction as MSignableTransaction, TransactionMachine}

View File

@@ -3,9 +3,8 @@ use std::{marker::Send, sync::Arc, collections::HashMap};
use async_trait::async_trait;
use thiserror::Error;
use frost::{Curve, FrostError, MultisigKeys, sign::PreprocessMachine};
use transcript::RecommendedTranscript;
use frost::{curve::Curve, FrostError, MultisigKeys, sign::PreprocessMachine};
mod coins;
mod wallet;

View File

@@ -6,7 +6,7 @@ use rand::rngs::OsRng;
use group::Group;
use frost::Curve;
use frost::curve::Curve;
use crate::{
NetworkError, Network,

View File

@@ -4,7 +4,7 @@ use rand_core::OsRng;
use transcript::{Transcript, RecommendedTranscript};
use frost::{Curve, MultisigKeys, sign::{PreprocessMachine, SignMachine, SignatureMachine}};
use frost::{curve::Curve, MultisigKeys, sign::{PreprocessMachine, SignMachine, SignatureMachine}};
use crate::{CoinError, SignError, Output, Coin, Network};