@@ -411,13 +411,17 @@ pub trait KeysInterface {
411411 ///
412412 /// This method must return the same value each time it is called with a given `Recipient`
413413 /// parameter.
414+ ///
415+ /// Errors if the `Recipient` variant is not supported by the implementation.
414416 fn get_node_secret ( & self , recipient : Recipient ) -> Result < SecretKey , ( ) > ;
415417 /// Get node id based on the provided [`Recipient`]. This public key corresponds to the secret in
416418 /// [`get_node_secret`].
417419 ///
418420 /// This method must return the same value each time it is called with a given `Recipient`
419421 /// parameter.
420422 ///
423+ /// Errors if the `Recipient` variant is not supported by the implementation.
424+ ///
421425 /// [`get_node_secret`]: KeysInterface::get_node_secret
422426 fn get_node_id ( & self , recipient : Recipient ) -> Result < PublicKey , ( ) > {
423427 let secp_ctx = Secp256k1 :: signing_only ( ) ;
@@ -427,6 +431,8 @@ pub trait KeysInterface {
427431 /// one is provided. Note that this tweak can be applied to `other_key` instead of our node
428432 /// secret, though this is less efficient.
429433 ///
434+ /// Errors if the `Recipient` variant is not supported by the implementation.
435+ ///
430436 /// [`node secret`]: Self::get_node_secret
431437 fn ecdh ( & self , recipient : Recipient , other_key : & PublicKey , tweak : Option < & Scalar > ) -> Result < SharedSecret , ( ) > ;
432438 /// Get a script pubkey which we send funds to when claiming on-chain contestable outputs.
@@ -466,6 +472,8 @@ pub trait KeysInterface {
466472 /// The hrp is ascii bytes, while the invoice data is base32.
467473 ///
468474 /// The secret key used to sign the invoice is dependent on the [`Recipient`].
475+ ///
476+ /// Errors if the `Recipient` variant is not supported by the implementation.
469477 fn sign_invoice ( & self , hrp_bytes : & [ u8 ] , invoice_data : & [ u5 ] , receipient : Recipient ) -> Result < RecoverableSignature , ( ) > ;
470478
471479 /// Get secret key material as bytes for use in encrypting and decrypting inbound payment data.
0 commit comments