Skip to main content
Version: v2.x

Minimal Anti Collusion Infrastructure (MACI) v2.4.0 / poseidonDecrypt

Function: poseidonDecrypt()

poseidonDecrypt(ciphertext, key, nonce, length): PlainText<bigint>

Decrypt some ciphertext using poseidon encryption

Parameters

ciphertext: CipherText<bigint>

the ciphertext to decrypt

key: EncryptionKey<bigint>

the key to decrypt with

nonce: bigint

the nonce used to encrypt

length: number

the length of the plaintext

Returns

PlainText<bigint>

the plaintext

Defined in

node_modules/.pnpm/@zk-kit+poseidon-cipher@0.3.2/node_modules/@zk-kit/poseidon-cipher/dist/index.d.ts:71