Skip to content

verify-media/getting-started

Repository files navigation

Verify

This is a sample app to check basic features of verify.

Please refer to the Getting Started guide for more info.

Network

VERIFY Protocol is deployed on Polygon Proof-of-Stake(PoS) network.

For more details on Polygon network can be found here.

Setup

  • Install the required dependencies by running npm install.

  • Create a .env file in the root directory and add the following environment variables:

    • ROOT_WALLET: Your root wallet private key.

    (you can generate a wallet using the gen-wallet.js file):

    node gen-wallet.js

    • INTER_WALLET: Your intermediate wallet private key.

    (you can generate a wallet using the gen-wallet.js file):

    node gen-wallet.js

    • PINATA_KEY: Your Pinata key.

    • PINATA_SECRET: Your Pinata secret.

Usage

this project contains several functions that interact with the Ethereum blockchain:

  • registerRoot(): Registers the root wallet. to be called only once per root and intermediate wallet combo
  • registerInterMediate(): Registers the intermediate - wallet. to be called only once per root and intermediate wallet combo
  • whoIs(): Returns the root wallet address associated with a given address.
  • publishContent(): Publishes content to IPFS and the blockchain.
  • consumeContent(): Verifies the content published on the blockchain.

To run the project, use the command node index.js.

Note:

remember to fund the intermediate wallet following steps mentioned in here before calling any of the functions

About

Getting started code for publishing and verifying content on the VERIFY protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •