• Encrypt some plaintext using poseidon encryption

    Parameters

    • msg: PlainText<bigint>

      the message to encrypt

    • key: EncryptionKey<bigint>

      the key to encrypt with

    • nonce: bigint

      the nonce to avoid replay attacks

    Returns CipherText<bigint>

    the ciphertext