Minimal Anti Collusion Infrastructure (MACI) v2.2.0 / poseidonEncrypt
Function: poseidonEncrypt()
poseidonEncrypt(
msg
,key
,nonce
):CipherText
<bigint
>
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
Defined in
node_modules/.pnpm/@zk-kit+poseidon-cipher@0.3.1/node_modules/@zk-kit/poseidon-cipher/dist/types/poseidonCipher.d.ts:9