From f7eafdd1cf42ed44eb9543c23ce23ddaa10d00fd Mon Sep 17 00:00:00 2001 From: cygnet Date: Mon, 3 Jun 2024 11:50:27 +0200 Subject: [PATCH] Remove failure cases from documentation --- src/utils/receiving.rs | 6 ------ src/utils/sending.rs | 6 ------ 2 files changed, 12 deletions(-) diff --git a/src/utils/receiving.rs b/src/utils/receiving.rs index ed3f1d1..930750f 100644 --- a/src/utils/receiving.rs +++ b/src/utils/receiving.rs @@ -53,12 +53,6 @@ pub fn calculate_tweak_data( /// # Returns /// /// This function returns the shared secret of this transaction. This shared secret can be used to scan the transaction of outputs that are for the current user. See `receiving::scan_transaction`. -/// -/// # Errors -/// -/// This function will error if: -/// -/// * Elliptic curve computation results in an invalid public key. pub fn calculate_ecdh_shared_secret(tweak_data: &PublicKey, b_scan: &SecretKey) -> PublicKey { let mut ss_bytes = [0u8; 65]; ss_bytes[0] = 0x04; diff --git a/src/utils/sending.rs b/src/utils/sending.rs index dd8e14e..2787eff 100644 --- a/src/utils/sending.rs +++ b/src/utils/sending.rs @@ -47,12 +47,6 @@ pub fn calculate_partial_secret( /// # Returns /// /// This function returns the shared secret of this transaction. This shared secret can be used to generate output keys for the recipient. -/// -/// # Errors -/// -/// This function will error if: -/// -/// * Elliptic curve computation results in an invalid public key. pub fn calculate_ecdh_shared_secret(B_scan: &PublicKey, partial_secret: &SecretKey) -> PublicKey { let mut ss_bytes = [0u8; 65]; ss_bytes[0] = 0x04;