Skip to content
This repository has been archived by the owner on Jan 23, 2023. It is now read-only.

Latest commit

 

History

History
25 lines (18 loc) · 721 Bytes

7.-attesters-users-verify-epoch-key-proof.md

File metadata and controls

25 lines (18 loc) · 721 Bytes

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

{% hint style="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. {% endhint %}

If the epoch key proof is successfully verified, it prints

Verifying epoch key 1421637519 with GSTRoot 14270915092725970451268204538779500502278807167690661595734149116833065872952 in epoch 1
Verify epoch key proof with epoch key 1421637519 succeed