Skip to main content

decrypt_extended_public_key

Function decrypt_extended_public_key 

Source
pub fn decrypt_extended_public_key(
    shared_key: &[u8; 32],
    encrypted_data: &[u8],
) -> Result<Vec<u8>, CryptoError>
Expand description

Decrypt an extended public key from DashPay contact requests (DIP-15)

§Arguments

  • shared_key - 32-byte shared secret from ECDH
  • encrypted_data - Encrypted extended public key with IV prepended (96 bytes total)

§Returns

Decrypted extended public key bytes