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