pub fn encrypt_with_external(
signer: &dyn ExternalSigner,
recipient: &NostrPublicKey,
plaintext: &str,
) -> Result<Nip44EncryptedMessage, SoftchatError>Expand description
Encrypt UTF-8 through an external provider and validate the result’s bounds.
§Errors
Returns stable capability/provider errors or a redacted invalid payload.