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:
Yeastplume
2019-05-23 16:27:57 +01:00
committed by GitHub
parent db818ac8b7
commit 85b55f5ca7
19 changed files with 144 additions and 59 deletions
+4 -4
View File
@@ -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);