# Functions
Decrypt decrypts msg with a cure25519 private key derived from an ed25519 private key.
DecryptECDH decrypt aes encrypted msg using a shared key derived from sk and pk using Elliptic curve Diffie Helman algorithm.
Encrypt encrypts msg with a cure25519 public key derived from an ed25519 public key.
EncryptECDH aes encrypt msg using a shared key derived from sk and pk using Elliptic curve Diffie Helman algorithm the nonce if prepended to the encrypted message.
KeyFromHex extract the public key from a hex string (used with jsx keys).
KeyFromID extract the public key from an Identifier.
PrivateKeyToCurve25519 converts an ed25519 private key into a corresponding curve25519 private key such that the resulting curve25519 public key will equal the result from PublicKeyToCurve25519.
PublicKeyToCurve25519 converts an Ed25519 public key into the curve25519 public
key that would be generated from the same private key.
Sign signs the message with privateKey and returns a signature.
Verify reports whether sig is a valid signature of message by publicKey.