Skip to main content
Version: v2.0_alpha

Minimal Anti Collusion Infrastructure (MACI) v2.0.0-alpha / poseidonDecryptWithoutCheck

Function: poseidonDecryptWithoutCheck()

poseidonDecryptWithoutCheck(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>

Dev

Do not throw if the plaintext is invalid

Defined in

node_modules/.pnpm/@zk-kit+poseidon-cipher@0.3.1/node_modules/@zk-kit/poseidon-cipher/dist/types/poseidonCipher.d.ts:28