@@ -35,9 +35,9 @@ const AMT_MSAT_LEN: usize = 8;
35
35
const METHOD_TYPE_OFFSET : usize = 5 ;
36
36
37
37
/// A set of keys that were HKDF-expanded from an initial call to
38
- /// [`KeysInterface ::get_inbound_payment_key_material`].
38
+ /// [`NodeSigner ::get_inbound_payment_key_material`].
39
39
///
40
- /// [`KeysInterface ::get_inbound_payment_key_material`]: crate::chain::keysinterface::KeysInterface ::get_inbound_payment_key_material
40
+ /// [`NodeSigner ::get_inbound_payment_key_material`]: crate::chain::keysinterface::NodeSigner ::get_inbound_payment_key_material
41
41
pub struct ExpandedKey {
42
42
/// The key used to encrypt the bytes containing the payment metadata (i.e. the amount and
43
43
/// expiry, included for payment verification on decryption).
@@ -84,7 +84,7 @@ impl Method {
84
84
/// `ChannelManager` is required. Useful for generating invoices for [phantom node payments] without
85
85
/// a `ChannelManager`.
86
86
///
87
- /// `keys` is generated by calling [`KeysInterface ::get_inbound_payment_key_material`] and then
87
+ /// `keys` is generated by calling [`NodeSigner ::get_inbound_payment_key_material`] and then
88
88
/// calling [`ExpandedKey::new`] with its result. It is recommended to cache this value and not
89
89
/// regenerate it for each new inbound payment.
90
90
///
@@ -176,7 +176,7 @@ fn construct_payment_secret(iv_bytes: &[u8; IV_LEN], metadata_bytes: &[u8; METAD
176
176
///
177
177
/// The metadata is constructed as:
178
178
/// payment method (3 bits) || payment amount (8 bytes - 3 bits) || expiry (8 bytes)
179
- /// and encrypted using a key derived from [`KeysInterface ::get_inbound_payment_key_material`].
179
+ /// and encrypted using a key derived from [`NodeSigner ::get_inbound_payment_key_material`].
180
180
///
181
181
/// Then on payment receipt, we verify in this method that the payment preimage and payment secret
182
182
/// match what was constructed.
@@ -197,7 +197,7 @@ fn construct_payment_secret(iv_bytes: &[u8; IV_LEN], metadata_bytes: &[u8; METAD
197
197
///
198
198
/// See [`ExpandedKey`] docs for more info on the individual keys used.
199
199
///
200
- /// [`KeysInterface ::get_inbound_payment_key_material`]: crate::chain::keysinterface::KeysInterface ::get_inbound_payment_key_material
200
+ /// [`NodeSigner ::get_inbound_payment_key_material`]: crate::chain::keysinterface::NodeSigner ::get_inbound_payment_key_material
201
201
/// [`create_inbound_payment`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment
202
202
/// [`create_inbound_payment_for_hash`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash
203
203
pub ( super ) fn verify < L : Deref > ( payment_hash : PaymentHash , payment_data : & msgs:: FinalOnionHopData , highest_seen_timestamp : u64 , keys : & ExpandedKey , logger : & L ) -> Result < Option < PaymentPreimage > , ( ) >
0 commit comments