mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
stick to e=H(R|P|m) when use schnorr signature
This commit is contained in:
parent
bc7780354c
commit
aa8d0cfb7c
1 changed files with 2 additions and 2 deletions
|
@ -260,7 +260,7 @@ impl Slate {
|
|||
if let Some(m) = message.clone() {
|
||||
let hashed = blake2b(secp::constants::MESSAGE_SIZE, &[], &m.as_bytes()[..]);
|
||||
let m = secp::Message::from_slice(&hashed.as_bytes())?;
|
||||
let res = aggsig::sign_single(&keychain.secp(), &m, &sec_key, None)?;
|
||||
let res = aggsig::sign_single(&keychain.secp(), &m, &sec_key, Some(&pub_key))?;
|
||||
Some(res)
|
||||
} else {
|
||||
None
|
||||
|
@ -360,7 +360,7 @@ impl Slate {
|
|||
&m,
|
||||
None,
|
||||
&p.public_blind_excess,
|
||||
None,
|
||||
Some(&p.public_blind_excess),
|
||||
false,
|
||||
) {
|
||||
return Err(ErrorKind::Signature(
|
||||
|
|
Loading…
Reference in a new issue