Skip to main content
Version: 2.0.0-beta-4

EpochKeyLiteProof

A class representing an epoch key lite proof. Each of the following properties are public signals for the proof.

Unlike the epoch key proof the lite proof does not prove membership in a state tree.

import { EpochKeyLiteProof } from '@unirep/circuits'

const data = new EpochKeyLiteProof(publicSignals, proof)

epochKey

The epoch key being proved.

this.epochKey

epoch

The epoch the proof was made within.

this.epoch

attesterId

The attester id for the proof.

this.attesterId

data

The 32 byte data endorsed by the proof.

this.data

revealNonce

A number indicating whether the epoch key nonce was revealed in the proof. This value will be either 1 or 0.

this.revealNonce

nonce

The nonce used to generate the epoch key. To determine if this value is set check that revealNonce == 1.

this.nonce

control

The control field used for the proof. This field contains many signals binary encoded into a single 256 bit value. This value is automatically decoded into the other properties on this class.

this.control