Skip to main content
Version: 1.0.1

Airdrop Reputation

genUserSignUpProof

npx ts-node cli/index.ts genUserSignUpProof
[-h]
[-e ETH_PROVIDER]
-id IDENTITY
-a ATTESTER_ID
-x CONTRACT
  • Attester can give user a sign up flag to indicate the user is one of the membership of the attester's application (or event).
  • Then user can generate a sign up proof to show that he has been authenticated by the attester.
  • See user sign up proof

Options

  -e ETH_PROVIDER, --eth-provider ETH_PROVIDER
A connection string to an Ethereum provider. Default: http://localhost:8545
-id IDENTITY, --identity IDENTITY
The (serialized) user's identity
-a ATTESTER_ID, --attester-id ATTESTER_ID
The attester id (in hex representation)
-x CONTRACT, --contract CONTRACT
The Unirep contract address

Options inherited from parent commands

  -h, --help            Show this help message and exit.

verifyUserSignUpProof

npx ts-node cli/index.ts verifyUserSignUpProof
[-h]
[-e ETH_PROVIDER]
[-ep EPOCH]
-p PUBLIC_SIGNALS
-pf PROOF
-x CONTRACT
  -e ETH_PROVIDER, --eth-provider ETH_PROVIDER
A connection string to an Ethereum provider. Default: http://localhost:8545
-ep EPOCH, --epoch EPOCH
The latest epoch user transitioned to. Default: current epoch
-p PUBLIC_SIGNALS, --public-signals PUBLIC_SIGNALS
The snark public signals of the user's epoch key
-pf PROOF, --proof PROOF
The snark proof of the user's epoch key
-x CONTRACT, --contract CONTRACT
The Unirep contract address

Options inherited from parent commands

  -h, --help            Show this help message and exit.