
Security News
Google’s OSV Fix Just Added 500+ New Advisories — All Thanks to One Small Policy Change
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
@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.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.
Research
/Security News
175 malicious npm packages (26k+ downloads) used unpkg CDN to host redirect scripts for a credential-phishing campaign targeting 135+ organizations worldwide.
Security News
Python 3.14 adds template strings, deferred annotations, and subinterpreters, plus free-threaded mode, an experimental JIT, and Sigstore verification.