mirror of
https://github.com/jwinterm/grin-wallet.git
synced 2026-10-17 07:11:36 +02:00
Add participant ID as part of key to stored private transaction context data (#117)
* add participant_id to saved tranasction context data * rustfmt? * change participant id for command line pay command
This commit is contained in:
@@ -71,7 +71,7 @@ fn aggsig_sender_receiver_interaction() {
|
||||
|
||||
let blind = blinding_factor.secret_key(&keychain.secp()).unwrap();
|
||||
|
||||
s_cx = Context::new(&keychain.secp(), blind, &parent, false);
|
||||
s_cx = Context::new(&keychain.secp(), blind, &parent, false, 0);
|
||||
s_cx.get_public_keys(&keychain.secp())
|
||||
};
|
||||
|
||||
@@ -85,7 +85,7 @@ fn aggsig_sender_receiver_interaction() {
|
||||
// let blind = blind_sum.secret_key(&keychain.secp())?;
|
||||
let blind = keychain.derive_key(0, &key_id).unwrap();
|
||||
|
||||
rx_cx = Context::new(&keychain.secp(), blind, &parent, false);
|
||||
rx_cx = Context::new(&keychain.secp(), blind, &parent, false, 1);
|
||||
let (pub_excess, pub_nonce) = rx_cx.get_public_keys(&keychain.secp());
|
||||
rx_cx.add_output(&key_id, &None, 0);
|
||||
|
||||
@@ -289,7 +289,7 @@ fn aggsig_sender_receiver_interaction_offset() {
|
||||
|
||||
let blind = blinding_factor.secret_key(&keychain.secp()).unwrap();
|
||||
|
||||
s_cx = Context::new(&keychain.secp(), blind, &parent, false);
|
||||
s_cx = Context::new(&keychain.secp(), blind, &parent, false, 0);
|
||||
s_cx.get_public_keys(&keychain.secp())
|
||||
};
|
||||
|
||||
@@ -302,7 +302,7 @@ fn aggsig_sender_receiver_interaction_offset() {
|
||||
|
||||
let blind = keychain.derive_key(0, &key_id).unwrap();
|
||||
|
||||
rx_cx = Context::new(&keychain.secp(), blind, &parent, false);
|
||||
rx_cx = Context::new(&keychain.secp(), blind, &parent, false, 1);
|
||||
let (pub_excess, pub_nonce) = rx_cx.get_public_keys(&keychain.secp());
|
||||
rx_cx.add_output(&key_id, &None, 0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user