From: Matt Corallo Date: Wed, 21 Feb 2018 16:35:07 +0000 (-0500) Subject: Update deps, including significant dep reduction in rust-bitcoin! X-Git-Tag: v0.0.12~428 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=770740dbcc581ab3ccbc3426d5c5ea10a4659317;p=rust-lightning Update deps, including significant dep reduction in rust-bitcoin! --- diff --git a/Cargo.toml b/Cargo.toml index 8290e28e..bff66532 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -14,8 +14,7 @@ Still super-early code-dump quality and is missing large chunks. See README in g non_bitcoin_chain_hash_routing = [] [dependencies] -bitcoin = "0.10.7" +bitcoin = "0.11" rust-crypto = "0.2" -rand = "0.3" -secp256k1 = "0.8.1" -num = "0.1" +rand = "0.4" +secp256k1 = "0.8" diff --git a/src/lib.rs b/src/lib.rs index 4a3ab271..c0132177 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -4,7 +4,6 @@ extern crate bitcoin; extern crate secp256k1; extern crate rand; extern crate crypto; -extern crate num; //TODO: Convince andrew to not rely on this for fucking casting... pub mod chain; pub mod ln; diff --git a/src/ln/channel.rs b/src/ln/channel.rs index 285cdf7b..acc8c4e9 100644 --- a/src/ln/channel.rs +++ b/src/ln/channel.rs @@ -7,8 +7,6 @@ use bitcoin::util::hash::{Sha256dHash, Hash160}; use bitcoin::util::bip143; use bitcoin::network::serialize::BitcoinHash; -use num::FromPrimitive; - use secp256k1::key::{PublicKey,SecretKey}; use secp256k1::{Secp256k1,Message,Signature}; use secp256k1;