@@ -30,7 +30,6 @@ pub mod payment;
3030pub mod utils;
3131
3232extern crate bech32;
33- extern crate bitcoin_hashes;
3433#[ macro_use] extern crate lightning;
3534extern crate num_traits;
3635extern crate secp256k1;
@@ -46,7 +45,7 @@ use std::time::SystemTime;
4645use bech32:: u5;
4746use bitcoin:: { Address , Network , PubkeyHash , ScriptHash } ;
4847use bitcoin:: address:: { Payload , WitnessProgram , WitnessVersion } ;
49- use bitcoin_hashes :: { Hash , sha256} ;
48+ use bitcoin :: hashes :: { Hash , sha256} ;
5049use lightning:: ln:: features:: Bolt11InvoiceFeatures ;
5150use lightning:: util:: invoice:: construct_invoice_preimage;
5251
@@ -166,10 +165,10 @@ pub const DEFAULT_MIN_FINAL_CLTV_EXPIRY_DELTA: u64 = 18;
166165/// extern crate secp256k1;
167166/// extern crate lightning;
168167/// extern crate lightning_invoice;
169- /// extern crate bitcoin_hashes ;
168+ /// extern crate bitcoin ;
170169///
171- /// use bitcoin_hashes ::Hash;
172- /// use bitcoin_hashes ::sha256;
170+ /// use bitcoin::hashes ::Hash;
171+ /// use bitcoin::hashes ::sha256;
173172///
174173/// use secp256k1::Secp256k1;
175174/// use secp256k1::SecretKey;
@@ -527,7 +526,7 @@ impl Ord for Bolt11InvoiceSignature {
527526/// The encoded route has to be <1024 5bit characters long (<=639 bytes or <=12 hops)
528527///
529528#[ derive( Clone , Debug , Hash , Eq , PartialEq , Ord , PartialOrd ) ]
530- pub struct PrivateRoute ( pub RouteHint ) ;
529+ pub struct PrivateRoute ( RouteHint ) ;
531530
532531/// Tag constants as specified in BOLT11
533532#[ allow( missing_docs) ]
@@ -1756,7 +1755,7 @@ impl<'de> Deserialize<'de> for Bolt11Invoice {
17561755#[ cfg( test) ]
17571756mod test {
17581757 use bitcoin:: ScriptBuf ;
1759- use bitcoin_hashes :: sha256;
1758+ use bitcoin :: hashes :: sha256;
17601759 use std:: str:: FromStr ;
17611760
17621761 #[ test]
0 commit comments