Skip to main content
Version: 1.0.1

3. Attester signs up

Choose an attester private key, for example:

const ATTESTER_PRIVATE_KEY = '0x59c6995e998f97a5a0044966f0945389dc9e86dae88c7a8412f4603b6b78690d'

Create an attester's wallet

const attester = new ethers.Wallet(
ATTESTER_PRIVATE_KEY,
provider
)

Attester signs up in UniRep smart contract

const tx = await contract
.connect(attester)
.attesterSignUp()

Then the attester can get his own attester ID

const attesterID = await contract.attesters(attester.address)
console.log(attesterID)