Minimal Anti Collusion Infrastructure (MACI) / poseidonEncrypt
Variable: poseidonEncrypt()
const
poseidonEncrypt: (msg
,key
,nonce
) =>CipherText
<bigint
>
Defined in: node_modules/.pnpm/@zk-kit+poseidon-cipher@0.3.2/node_modules/@zk-kit/poseidon-cipher/dist/index.d.ts:62
Encrypt some plaintext using poseidon encryption
Parameters
msg
PlainText
<bigint
>
the message to encrypt
key
EncryptionKey
<bigint
>
the key to encrypt with
nonce
Nonce
<bigint
>
the nonce to avoid replay attacks
Returns
CipherText
<bigint
>
the ciphertext