13. User generates sign up proof
npx ts-node cli/index.ts genUserSignUpProof \
-x $UNIREP_CONTRACT_ADDRESS \
-id $USER_IDENTITY \
-a $ATTESTER_ID
info
NOTE: -a
is attester's id. If the attester gives the attestation with a sign up flag, the user can generate a sign up proof to prove the membership from the attester.
See: cli/genUserSignUpProof for more genUserSignUpProof
options.
The proof will be printed and it should be handed to the receiver of this proof, for example,
Proof of user sign up from attester 1:
Epoch key of the user: 3914435768
Unirep.signUp.proof.WyIyMzA5MzgyMTIxNzA0OTExOTMyODcyMzc4MzU1MjU5OTI1MzI4NDI1MTc1Nzg0OTAyNDYwOTM0ODA0MDczMTAyNTkzODUwMzQ4MDg0IiwiMjA4NjA3NTQ2NDU4NjQxMzk1Mjc2NzMzNjQxNjc4NDM2OTgyNjI1MzIxODEyNjAwNDE3MzMzMTk0NDAxNDcxMDg0MTk1MDM3ODAzMTAiLCI5NzAxODg3NjMyMzQ0ODExMDEwMDU2MDg1Mjc4MzM2NzI5MTQ2NjUyMTc3Mzg2MjE1OTc4MjMwMzUzODcxMzg5NDE1NDkzMzQ5MjQ1IiwiNjMyMDA0NTM4NzYzNzY0MDA0MzQ0MDcwNjQ1NTQwMTU5Njg5ODUxNDk5MDAwMTk5ODk2NDU4NzA0NDM3MjU0MjIzMTEzMTk2MTczNSIsIjk3MzU2MzI2Mzg4MzcyNjQwNTcxODE4MTE4NTA0MDA5MTkyNzYxMzY4MTA1MzE1NzMzMTY3NTIxMzg5NDAyOTE2MTk5MTgxMDgwOTMiLCIxNDMwMDU0MzM1MTM5MzIxNTIyNzAzMTUyMDI2MjQ5MzIyOTA3ODY5NjgwMTI0MzEyODgyNjM3MTQ3MzM1NDUwOTY2MDk3MjI2NjQ1IiwiOTI3MDc5OTMxNTM5NjQ4NTMxOTk2ODg4MDgxNTQxNjQxMTEzNjIyMDM0NTM0MTQwNzU3OTk4NjAwNjc1MTUwMTUyODE1Nzk4Mzg4IiwiNjQwOTc3NDA0MjA4MTA5NTY3MzI4MTcyNTE2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