From 8a951bd3c324158581c996950aaf42721520ee67 Mon Sep 17 00:00:00 2001 From: "J. Ayo Akinyele" Date: Tue, 12 Feb 2019 01:59:29 -0500 Subject: [PATCH] Minor updates based on rust-secp256k1 changes --- Cargo.toml | 6 +++--- src/lib.rs | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 3310a8a..f3485ca 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "bolt" -version = "0.1.0" +version = "0.2.0" authors = ["J. Ayo Akinyele "] 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" diff --git a/src/lib.rs b/src/lib.rs index b44e99d..fd9e508 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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());