@@ -35,9 +35,9 @@ const AMT_MSAT_LEN: usize = 8;
3535const METHOD_TYPE_OFFSET : usize = 5 ;
3636
3737/// 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`].
3939///
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
4141pub struct ExpandedKey {
4242 /// The key used to encrypt the bytes containing the payment metadata (i.e. the amount and
4343 /// expiry, included for payment verification on decryption).
@@ -84,7 +84,7 @@ impl Method {
8484/// `ChannelManager` is required. Useful for generating invoices for [phantom node payments] without
8585/// a `ChannelManager`.
8686///
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
8888/// calling [`ExpandedKey::new`] with its result. It is recommended to cache this value and not
8989/// regenerate it for each new inbound payment.
9090///
@@ -176,7 +176,7 @@ fn construct_payment_secret(iv_bytes: &[u8; IV_LEN], metadata_bytes: &[u8; METAD
176176///
177177/// The metadata is constructed as:
178178/// 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`].
180180///
181181/// Then on payment receipt, we verify in this method that the payment preimage and payment secret
182182/// match what was constructed.
@@ -197,7 +197,7 @@ fn construct_payment_secret(iv_bytes: &[u8; IV_LEN], metadata_bytes: &[u8; METAD
197197///
198198/// See [`ExpandedKey`] docs for more info on the individual keys used.
199199///
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
201201/// [`create_inbound_payment`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment
202202/// [`create_inbound_payment_for_hash`]: crate::ln::channelmanager::ChannelManager::create_inbound_payment_for_hash
203203pub ( 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