Reputation Proof

User can generate reputation proof to claim how much reputation he has

genReputationProof

npx ts-node cli/index.ts genReputationProof
                  [-h] 
                  [-e ETH_PROVIDER] 
                  -id IDENTITY 
                  -n EPOCH_KEY_NONCE 
                  -a ATTESTER_ID 
                  [-r REPUTATION_NULLIFIER] 
                  [-mr MIN_REP]
                  [-gp GRAFFITI_PREIMAGE] 
                  -x CONTRACT

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
  -n EPOCH_KEY_NONCE, --epoch-key-nonce EPOCH_KEY_NONCE
                        The epoch key nonce
  -a ATTESTER_ID, --attester-id ATTESTER_ID
                        The attester id (in hex representation)
  -r REPUTATION_NULLIFIER, --reputation-nullifier REPUTATION_NULLIFIER
                        The number of reputation nullifiers to prove
  -mr MIN_REP, --min-rep MIN_REP
                        The minimum positive score minus negative score the attester given to the user
  -gp GRAFFITI_PREIMAGE, --graffiti-preimage GRAFFITI_PREIMAGE
                        The pre-image of the graffiti for the reputation the attester given to the user (in hex representation)
  -x CONTRACT, --contract CONTRACT
                        The Unirep contract addressin

Options inherited from parent commands

verifyReputationProof

  • This command will help other users with reputation proof with Unirep.reputation.proof prefix and it public signals with Unirep.reputation.publicSignals prefix to call the Unirep smart contract to verify the proof.

Options

Options inherited from parent commands

Last updated

Was this helpful?