View Source Nostr.Crypto.AES256CBC (Nostr v0.1.3)

Algorithm that encrypts and decrypts direct messages

Link to this section Summary

Link to this section Functions

Link to this function

decrypt(message, seckey, pubkey)

View Source
@spec decrypt(String.t(), K256.Schnorr.signing_key(), K256.Schnorr.verifying_key()) ::
  {:ok, String.t()} | {:error, atom() | String.t()}
Link to this function

encrypt(message, seckey, pubkey)

View Source
@spec encrypt(
  String.t(),
  K256.Schnorr.signing_key() | <<_::256>>,
  K256.Schnorr.verifying_key() | <<_::256>>
) :: String.t()