
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
@litentry/vc-sdk
Advanced tools
This library the common functionality to help dApps parse and validate Litentry issued Verifiable Credentials
This SDK provides the common functionality to help dApps parse and validate Litentry issued Verifiable Credentials.
A live example of this SDK's consumer application is identity-hub (https://idhub.litentry.io) where users request and generate their VCs and reveal their obtained VCs and share the relevant VCs should they consent to 3rd party applications.
npm install @litentry/parachain-api @litentry/sidechain-api @litentry/vc-sdk
You can find more elaborated examples about the usage of this package on https://github.com/litentry/client-sdk-examples.
Below you will find some code snippets to guide you through the main functionalities.
Interaction with the Litentry parachain and TEE to validate whether the VC is an active VC issued by the Litentry.
import { WsProvider, ApiPromise } from '@polkadot/api';
import { validateVc } from '@litentry/vc-sdk';
const api: ApiPromise = await ApiPromise.create({
provider: new WsProvider('wss://tee-prod.litentry.io'),
});
// vc json string
const vcJson =
'{"@context": "https://www.w3.org/2018/credentials/v1", "type": "VerifiableCredential", "issuer": "https://example.com/issuer", "subject": "did:example:123", "credentialStatus": "https://example.com/status"}';
const result = await validateVc(api, vcJson);
// isValid is false if any field value of the result.detail is not true
if (!result.isValid) {
// true or error message
console.log('vcSignature: ', result.detail.vcSignature);
// true or error message
console.log('enclaveRegistry: ', result.detail.enclaveRegistry);
}
Note for simplicity, in above example it's assumed that SDK consumer application has to provide the api instance of ApiPromise and manage its lifecycle as well.
FAQs
This library the common functionality to help dApps parse and validate Litentry issued Verifiable Credentials
We found that @litentry/vc-sdk demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.