From aa8d0cfb7c5e9481333af0f55c6b1f03bfcbb492 Mon Sep 17 00:00:00 2001 From: Gary Yu Date: Fri, 21 Dec 2018 22:38:16 +0800 Subject: [PATCH] stick to e=H(R|P|m) when use schnorr signature --- core/src/libtx/slate.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/libtx/slate.rs b/core/src/libtx/slate.rs index 8816d028f..c693af27a 100644 --- a/core/src/libtx/slate.rs +++ b/core/src/libtx/slate.rs @@ -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(