Skip to content

Commit

Permalink
Remove failure cases from documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
cygnet3 committed Jun 3, 2024
1 parent 28d30bd commit f7eafdd
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 12 deletions.
6 changes: 0 additions & 6 deletions src/utils/receiving.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
6 changes: 0 additions & 6 deletions src/utils/sending.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f7eafdd

Please sign in to comment.