14. User generates sign up proof

npx ts-node cli/index.ts genUserSignUpProof \
    -x $UNIREP_CONTRACT_ADDRESS  \
    -id $USER_IDENTITY  \
    -a $ATTESTER_ID

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: 364193153
Unirep.signUp.proof.WyIxODk1ODk4MTczMTgxNDk5NTAxODYxNDMyMjY5MDQ3NTkxNDE1MjQ3MzgxMzM1OTk1MjQ2NTc3Njk3MjEzODY5Njc2MDQzMTU2NzQwMiIsIjUwNjIwNjAxMTg1Njk1MDMyMDU4MTUxMjM2OTUxMTU2MTQwMTc5ODM2NDg2ODc5ODA1MDI4MTY2NTY4MjA2NTk0NzYxNjE1ODc1MTQiLCIxOTM1MDc5NTEzNzk5MzU2ODYxNjY5NTU4NDE0NTg0NjkyMTgxNTA3MzUyNTU3NDY0ODIzNDU3NDQ3ODU4MzYzMDYzMzU5MzA1MDYxOCIsIjE4ODkyNDY4NTM0NjAwNDMxMTg2ODM5MTk0NTg1Mjc2MjIwNDg3MzI2MTgyMzExNDc2NzIyNzg0OTY5NDM0NDk2Njg0ODE1MTUwNzg3IiwiODk5Mzk5NTQ1OTI3MDIxMzg0ODA2OTc2MjM5NjQ5NjQzNTMxMjg4NzkxMTM1ODQyNjk2MTY5MTY3NTQzNjE0NTU4MTc4ODIzMjE1IiwiMTIyMjA1MzY1MzA5MDU4Mjk1MDk2NTYwMzIzNjY2OTExMzU5MjI5MzQyMTUzODY3MDAyMjc3ODMzMDg3MDIyOTM1MzQ4MTI2ODk0NDAiLCIzMTk5OTM0MDg0MDA0NzQ3Njk3MDI5MzM4MDAyNDQ1Nzg1NTMzMjY0OTQwNTEwMjY4NDYzNjgxMTE4MjA1MTM0MTMzODg0Njc4NTg3IiwiNjM5MTU3NDIyNzU4MTY1Mzk2NzM2MDI0Mj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