Move SignableInput to clsag::Input

This commit is contained in:
Luke Parker
2022-04-28 17:29:56 -04:00
parent 7ed1fca270
commit c4b7cb71d7
4 changed files with 78 additions and 73 deletions

View File

@@ -19,7 +19,7 @@ use monero::util::ringct::{Key, Clsag};
use crate::{
hash_to_point,
frost::{MultisigError, Ed25519, DLEqProof},
clsag::{SignableInput, sign_core, verify}
clsag::{Input, sign_core, verify}
};
#[allow(non_snake_case)]
@@ -40,7 +40,7 @@ pub struct Multisig {
AH: dfg::EdwardsPoint,
msg: [u8; 32],
input: SignableInput,
input: Input,
interim: Option<ClsagSignInterim>
}
@@ -49,7 +49,7 @@ impl Multisig {
pub fn new<R: RngCore + CryptoRng + SeedableRng>(
rng: &mut R,
msg: [u8; 32],
input: SignableInput
input: Input
) -> Result<Multisig, MultisigError> {
let mut seed = [0; 32];
rng.fill_bytes(&mut seed);