Skip to main content
Version: 1.0.1

7. Attesters/Users verify epoch key proof

npx ts-node cli/index.ts verifyEpochKeyProof \
-x $UNIREP_CONTRACT_ADDRESS \
-pf $EPOCH_KEY_PROOF \
-p $EPOCH_PUBLIC_SIGNALS
info

NOTE:

-p is the public signals of the epoch key proof

-pf is the epoch key proof

See: cli/verifyEpochKeyProof for more verifyEpochKeyProof options.

If the epoch key proof is successfully verified, it prints

Verifying epoch key 1916576171 with GSTRoot 10687565875351486068559851063632616354892793772274816998588637683831425346879 in epoch 1
Verify epoch key proof with epoch key 1916576171 succeed