Skip to content

VWBL/NFT-With-VC-Script

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NFT with VC(Verifiable Credential) script

This script is issuing and verifying NFT with VC(Verifiable Credential). VC functionality add a verification layer to ensure the authenticity of NFT issuers. This uses veramo as a vc framework.

Setup Infura Id

./src/veramo/setup.ts (line39)
// You will need to get a project ID from infura https://www.infura.io
const INFURA_PROJECT_ID = '${YOUR_INFURA_ID}'

Usage

yarn

// registrater issuer did
yarn node --loader ts-node/esm ./src/create-identifier.ts
// resolve did document
yarn node --loader ts-node/esm ./src/resolve-did.ts
// list did
yarn node --loader ts-node/esm ./src/list-identifiers.ts
// mint nft with vc
yarn node --loader ts-node/esm ./src/mint-vcnft.ts
// mint vwbl with vc
yarn node --loader ts-node/esm ./src/mint-vcvwbl.ts 
// verify nft with vc
yarn node --loader ts-node/esm ./src/verify-vcnft.ts
// sign message by issuer private key
yarn node --loader ts-node/esm ./src/sign-message.ts

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published