@@ -30,7 +30,6 @@ pub mod payment;
30
30
pub mod utils;
31
31
32
32
extern crate bech32;
33
- extern crate bitcoin_hashes;
34
33
#[ macro_use] extern crate lightning;
35
34
extern crate num_traits;
36
35
extern crate secp256k1;
@@ -46,7 +45,7 @@ use std::time::SystemTime;
46
45
use bech32:: u5;
47
46
use bitcoin:: { Address , Network , PubkeyHash , ScriptHash } ;
48
47
use bitcoin:: address:: { Payload , WitnessProgram , WitnessVersion } ;
49
- use bitcoin_hashes :: { Hash , sha256} ;
48
+ use bitcoin :: hashes :: { Hash , sha256} ;
50
49
use lightning:: ln:: features:: Bolt11InvoiceFeatures ;
51
50
use lightning:: util:: invoice:: construct_invoice_preimage;
52
51
@@ -166,10 +165,10 @@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY_DELTA: u64 = 18;
166
165
/// extern crate secp256k1;
167
166
/// extern crate lightning;
168
167
/// extern crate lightning_invoice;
169
- /// extern crate bitcoin_hashes ;
168
+ /// extern crate bitcoin ;
170
169
///
171
- /// use bitcoin_hashes ::Hash;
172
- /// use bitcoin_hashes ::sha256;
170
+ /// use bitcoin::hashes ::Hash;
171
+ /// use bitcoin::hashes ::sha256;
173
172
///
174
173
/// use secp256k1::Secp256k1;
175
174
/// use secp256k1::SecretKey;
@@ -527,7 +526,7 @@ impl Ord for Bolt11InvoiceSignature {
527
526
/// The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
528
527
///
529
528
#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
530
- pub struct PrivateRoute ( pub RouteHint ) ;
529
+ pub struct PrivateRoute ( RouteHint ) ;
531
530
532
531
/// Tag constants as specified in BOLT11
533
532
#[ allow( missing_docs) ]
@@ -1756,7 +1755,7 @@ impl<'de> Deserialize<'de> for Bolt11Invoice {
1756
1755
#[ cfg( test) ]
1757
1756
mod test {
1758
1757
use bitcoin:: ScriptBuf ;
1759
- use bitcoin_hashes :: sha256;
1758
+ use bitcoin :: hashes :: sha256;
1760
1759
use std:: str:: FromStr ;
1761
1760
1762
1761
#[ test]
0 commit comments