pub fn encrypt_message(
bridge: &mut SignalBridge,
peer: &str,
plaintext: &[u8],
) -> Result<Vec<u8>, Box<dyn Error>>Expand description
Encrypts a message for a peer using Signal Protocol
§Arguments
bridge- Signal bridge instancepeer- Recipient’s RDX fingerprint or Nostr pubkeyplaintext- Message bytes to encrypt