Minor updates based on rust-secp256k1 changes
This commit is contained in:
parent
211d8e51ea
commit
8a951bd3c3
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "bolt"
|
name = "bolt"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
authors = ["J. Ayo Akinyele <ayo@yeletech.org>"]
|
authors = ["J. Ayo Akinyele <ayo@yeletech.org>"]
|
||||||
description = "library for Blind Off-chain Lightweight Transactions (BOLT)"
|
description = "library for Blind Off-chain Lightweight Transactions (BOLT)"
|
||||||
keywords = ["zcash", "payment channels", "bolt"]
|
keywords = ["zcash", "payment channels", "bolt"]
|
||||||
|
@ -10,8 +10,8 @@ repository = "https://github.com/ZcashFoundation/libbolt"
|
||||||
license = "MIT License"
|
license = "MIT License"
|
||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
rand = "0.5.0-pre.2"
|
rand = "0.5"
|
||||||
rand_core = "0.2.1"
|
rand_core = "0.4.0"
|
||||||
bn = { git = "https://github.com/ZcashFoundation/bn", branch = "master" }
|
bn = { git = "https://github.com/ZcashFoundation/bn", branch = "master" }
|
||||||
bincode = "0.6.1"
|
bincode = "0.6.1"
|
||||||
sodiumoxide = "0.0.16"
|
sodiumoxide = "0.0.16"
|
||||||
|
|
|
@ -1361,8 +1361,7 @@ pub mod bidirectional {
|
||||||
// update state to include the user's wallet key
|
// update state to include the user's wallet key
|
||||||
assert!(update_merchant_state(state, &wpk, Some(*rv_token)));
|
assert!(update_merchant_state(state, &wpk, Some(*rv_token)));
|
||||||
}
|
}
|
||||||
let mut s = secp256k1::Secp256k1::new();
|
let ser_rv_token = rv_token.serialize_compact();
|
||||||
let ser_rv_token = rv_token.serialize_compact(&s);
|
|
||||||
let rm = RevokedMessage::new(String::from("revoked"), wpk, Some(ser_rv_token));
|
let rm = RevokedMessage::new(String::from("revoked"), wpk, Some(ser_rv_token));
|
||||||
// sign the revoked message
|
// sign the revoked message
|
||||||
let signature = clsigs::sign_d(&pp.cl_mpk, &m_data.csk.sk, &rm.hash());
|
let signature = clsigs::sign_d(&pp.cl_mpk, &m_data.csk.sk, &rm.hash());
|
||||||
|
|
Loading…
Reference in New Issue