Airdrop Reputation

Attester sets airdrop amount and users can get airdrop reputation

setAirdropAmount

npx ts-node cli/index.ts setAirdropAmount
                  [-h] 
                  [-e ETH_PROVIDER] 
                  -x CONTRACT 
                  -a AIRDROP 
                  -d ETH_PRIVKEY
  • The attester that has registered in UniRep can set the airdrop amount and give it to users that register through the attester's account/smart contract.

  • UniRep contract will also set the sign up flag to 1.

Options

  -e ETH_PROVIDER, --eth-provider ETH_PROVIDER
                        A connection string to an Ethereum provider. Default: http://localhost:8545
  -x CONTRACT, --contract CONTRACT
                        The Unirep contract address
  -a AIRDROP, --airdrop AIRDROP
                        The amount of airdrop positive reputation given by the attester
  -d ETH_PRIVKEY, --eth-privkey ETH_PRIVKEY
                        The attester's Ethereum private key

Options inherited from parent commands

genUserSignUpProof

  • 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.

Options

Options inherited from parent commands

verifyUserSignUpProof

  • Options

Options inherited from parent commands

giveAirdrop

  • After receiving the user sign up proof, the attester knows that the user has been authenticated before and the attester can give the attester the airdrop reputation to let the user spend the reputation.

Options

Options inherited from parent commands

Last updated

Was this helpful?