Skip to content

Latest commit

 

History

History
 
 

solana

Solana Example

This package illustrate how programs use results of Verifiable Credential verifications even when the contracts are not technically or economically capable of executing the verifications themselves.

This program follows a pattern in which verifications are performed off-chain and then confirmed on-chain. An off-chain verifier handles verifiable credential exchange in the usual manner, and upon successful verification, creates a minimal verification result object.

This specific example demonstrates the minimally viable process of verifying the result in a program.

Getting Started

This package is set up as an npm workspace (requires npm v7 or greater), and as such, the dependencies for all included packages are installed from the root level using npm install. Do not run npm install from this directory.

From the root of the monorepo, run:

npm install

Additionally, you must install rust, solana, and anchor. You can find instructions at the Anchor website.

Testing

npm run anchor