Skip to content

0xPolygonID/billions-attestations-examples

Repository files navigation

Billions Attestations Registry example

This repo shows some examples of usage for Billions Attestations Registry.

Setup

  1. Install dependencies

    npm i
    
  2. Copy .env.example to .env and replace the values with your specific configuration mainly for PRIVATE_KEY that will be used to send transactions for authentication and attestations.

  3. Download privado ID circuits. We will need AuthV2 circuit to generate authV2 proof.

    ./dl_circuits.sh
    

Examples

  1. Create review attestation for a specific identity

    npm run create:review -- --stars 5 --comment "A new comment for the identity" --recipientDid did:iden3:billions:test:2W4c3K3BgksQCSdXCP5LJDDrexPL1gHUfaCHAACE4a
    
  2. Get review attestations for a specific identity

    npm run identity:reviews -- --did did:iden3:billions:test:2W4c3K3BgksQCSdXCP5LJDDrexPL1gHUfaCHAACE4a
    
  3. Revoke an attestation that is not revoked

    npm run revoke:attestation -- --id 0x89c074c18440bc0b1dd902683249f4fee916402262a1d51d90ad1cfe71d202fd
    
  4. Create ownership attesation for a specific identity

    npm run create:ownership  -- --recipientDid did:iden3:billions:test:2W4c3K3BgksQCSdXCP5LJDDrexPL1gHUfaCHAACE4a
    

Check attestations

You can check attestations in different ways:

About

Billions Attestations examples

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors