mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-12 14:09:25 +00:00
Cleanup which makes transcript optional, only required for multisig
This commit is contained in:
@@ -113,8 +113,8 @@ pub(crate) fn sign_core<R: RngCore + CryptoRng>(
|
||||
let mut to_hash = vec![];
|
||||
to_hash.reserve_exact(((2 * n) + 4) * 32);
|
||||
const PREFIX: &str = "CLSAG_";
|
||||
const AGG_0: &str = "CLSAG_agg_0";
|
||||
const ROUND: &str = "round";
|
||||
const AGG_0: &str = "CLSAG_agg_0";
|
||||
const ROUND: &str = "round";
|
||||
to_hash.extend(AGG_0.bytes());
|
||||
to_hash.extend([0; 32 - AGG_0.len()]);
|
||||
|
||||
|
||||
@@ -14,14 +14,13 @@ use monero::util::ringct::{Key, Clsag};
|
||||
|
||||
use group::Group;
|
||||
|
||||
use dalek_ff_group as dfg;
|
||||
use transcript::Transcript as TranscriptTrait;
|
||||
use frost::{Curve, FrostError, algorithm::Algorithm, MultisigView};
|
||||
use dalek_ff_group as dfg;
|
||||
|
||||
use crate::{
|
||||
Transcript,
|
||||
hash_to_point,
|
||||
frost::{MultisigError, Ed25519, DLEqProof},
|
||||
frost::{Transcript, MultisigError, Ed25519, DLEqProof},
|
||||
key_image,
|
||||
clsag::{Input, sign_core, verify}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user