From 770740dbcc581ab3ccbc3426d5c5ea10a4659317 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 21 Feb 2018 11:35:07 -0500 Subject: [PATCH] Update deps, including significant dep reduction in rust-bitcoin! --- Cargo.toml | 7 +++---- src/lib.rs | 1 - src/ln/channel.rs | 2 -- 3 files changed, 3 insertions(+), 7 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 8290e28ef..bff665320 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 4a3ab2718..c01321776 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 285cdf7b4..acc8c4e91 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; -- 2.39.5