Skip to main content
Version: v3.x

Minimal Anti Collusion Infrastructure (MACI) / poseidonDecrypt

Variable: poseidonDecrypt()

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

Defined in: node_modules/.pnpm/@[email protected]/node_modules/@zk-kit/poseidon-cipher/dist/index.d.ts:71

Decrypt some ciphertext using poseidon encryption

Parameters

ciphertext

CipherText<bigint>

the ciphertext to decrypt

key

EncryptionKey<bigint>

the key to decrypt with

nonce

Nonce<bigint>

the nonce used to encrypt

length

number

the length of the plaintext

Returns

PlainText<bigint>

the plaintext