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

Latest commit

 

History

History
23 lines (17 loc) · 752 Bytes

File metadata and controls

23 lines (17 loc) · 752 Bytes

8. Submit epoch key proof to Unirep smart contract

The epoch key proof should be submitted to the Unirep smart contract, and obtain a proof index from Unirep smart contract, then it can be verified by others and be sent attestations.

npx ts-node cli/index.ts submitEpochKeyProof \
    -x $UNIREP_CONTRACT_ADDRESS  \
    -d $USER_PRIVATE_KEY  \
    -pf $EPOCH_KEY_PROOF  \
    -p $EPOCH_PUBLIC_SIGNALS

{% hint style="info" %} NOTE: See cli/submitEpochKeyProof for more submitEpochKeyProof options. {% endhint %}

  • The proof index will be printed, for example:
Proof index:  1
  • Then the epoch key with the proof index should be handed to attester to be attested.