Skip to main content

decrypt

Function decrypt 

Source
pub fn decrypt(shared_secret: &[u8; 32], payload: &[u8]) -> Result<Vec<u8>>
Expand description

Decrypt a NIP-44 v2 payload using a raw ECDH shared secret.

Takes the encrypted payload as raw bytes and returns the plaintext.