This page describes documentation specific to the Solana ChainDriver named as SolDriver created by the Blockin team. It is implemented using bs58 and tweetnacl libraries, and it is targeted for use by Phantom wallet.
For BitBadges, it uses the official BitBadges API.
Installation and Initialization
First, npm install blockin-sol-driver
Then, import via import SolDriver from 'blockin-sol-driver';
To initialize a new instance, run:
const SolanaDriver = new SolDriver(CHAIN_ID);
Currently, native Solana assets are not supported with this driver, only BitBadges.
Signatures
See here for an example of implementing signatures in a compatible format using Phantom wallet.
For BitBadges, we support checking ownership time via their time-based balances feature. Note this is an ownership rights feature, it queries if the user has ownership rights for time XYZ currently, not that they had rights at time XYZ for time XYZ. See .
You can provide snapshots for BitBadges badges via the verifyChallenge options. Snapshot maps are expected to be in the form of . See .