Skip to main content

open

Function open 

Source
pub fn open(key: &[u8; 32], content_b64: &str) -> Result<Vec<u8>, String>
Expand description

Inverse of seal: base64-decode then NIP-44-decrypt under the raw key. A wrong key or tampered payload fails the MAC and returns Err.