decrypt
Decrypts a NIP-44 encrypted message.
Decrypts the message with the following steps:
Derives message keys from conversation key and payload nonce
Verifies HMAC-SHA256 using constant-time comparison
Decrypts ciphertext with ChaCha20
Removes NIP-44 padding
Securely clears derived keys from memory
Return
The decrypted plaintext message
Parameters
payload
The encrypted message payload
conversation Key
The 32-byte conversation key
Throws
if MAC verification fails, padding is invalid, or keys are wrong size