
Product
Introducing Webhook Events for Alert Changes
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.
@civic/spl-identity
Advanced tools
SPL Identity is a Solana program, which adds the concept of Self-Sovereign Identity to the Solana blockchain. It allows other Solana programs to add "identity gate" functionality: A user can interact with the program only if they are in possession of a va
SPL Identity is a Solana program, which adds the concept of Self-Sovereign Identity to the Solana blockchain. It allows other Solana programs to add "identity gate" functionality: A user can interact with the program only if they are in possession of a valid identity, certified by a trusted identity validator.
A user's personal identity information is not stored on-chain, rather, the identity validator stores a hash of the data against a new account type called an "Identity Account"
This is the JS client for the Identity program.
npm install @civicteam/spl-identity
or
yarn add @civicteam/spl-identity
import { Identity } from '@civicteam/spl-identity';
Given a funded owner Account:
const identityAccount = await identity.createAccount(owner.publicKey);
const identityAccountInfo = await identity.getAccountInfo(identityAccount);
// A new identity has no attestations
expect(identityAccountInfo.attestation).to.be.undefined();
expect(identityAccountInfo.owner).to.deep.equal(owner.publicKey);
Given a funded IDV Account:
const attestation = new Uint8Array(
// an attestation must be 32 bytes in length
Buffer.from('my attestation'.padStart(32, ' '), 'utf-8')
);
await identity.attest(identityAccount, idv, attestation);
const identityHasAttestation = await identity.hasAttestation(
identityAccount,
idv.publicKey,
attestation
);
expect(identityHasAttestation).to.be.true;
To build using TSDX, use:
yarn start
This builds to /dist using Rollup, and runs the project in watch mode so any edits you save inside src causes a rebuild to /dist.
To do a one-off build, use yarn build.
To run tests, use yarn test.
FAQs
SPL Identity is a Solana program, which adds the concept of Self-Sovereign Identity to the Solana blockchain. It allows other Solana programs to add "identity gate" functionality: A user can interact with the program only if they are in possession of a va
We found that @civic/spl-identity demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Product
Socket now scans OpenVSX extensions, giving teams early detection of risky behaviors, hidden capabilities, and supply chain threats in developer tools.

Product
Bringing supply chain security to the next generation of JavaScript package managers