# @arcblock/vc

> TypeScript lib to work with ArcBlock Verifiable Credentials

Latest version **1.30.24** (published 2026-05-14) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install @arcblock/vc
pnpm add @arcblock/vc
yarn add @arcblock/vc
bun add @arcblock/vc
```

## Health

**Score 60/100 (C)** — status: active.

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.30.24 |
| Published | 2026-05-14 |
| First published | 2020-03-05 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 39.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | wangshijun |
| Maintainers | wangshijun, polunzh, mave99a, gxw |
| Keywords | arcblock, blockchain, did, sdk |

## Links

- npm: https://www.npmjs.com/package/@arcblock/vc
- Repository: https://github.com/ArcBlock/blockchain
- Homepage: https://github.com/ArcBlock/blockchain/tree/master/asset/vc
- Issues: https://github.com/ArcBlock/blockchain/issues
- npm.io page: https://npm.io/package/@arcblock/vc

## Dependencies (8)

- [debug](https://npm.io/package/debug.md) ^4.4.3
- [lodash](https://npm.io/package/lodash.md) ^4.17.23
- [@ocap/util](https://npm.io/package/@ocap/util.md) 1.30.24
- [@ocap/wallet](https://npm.io/package/@ocap/wallet.md) 1.30.24
- [@arcblock/did](https://npm.io/package/@arcblock/did.md) 1.30.24
- [@ocap/mcrypto](https://npm.io/package/@ocap/mcrypto.md) 1.30.24
- [is-absolute-url](https://npm.io/package/is-absolute-url.md) ^3.0.3
- [fast-json-stable-stringify](https://npm.io/package/fast-json-stable-stringify.md) ^2.1.0

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.30.24 (latest) — 2026-05-14
- 1.30.23 — 2026-05-13
- 1.30.22 — 2026-05-13
- 1.30.21 — 2026-05-12
- 1.30.20 — 2026-05-12
- 1.30.19 — 2026-05-12
- 1.30.18 — 2026-05-11
- 1.30.17 — 2026-05-11
- 1.30.16 — 2026-05-10
- 1.30.15 — 2026-05-08
- 1.30.14 — 2026-05-08
- 1.30.13 — 2026-05-08
- 1.30.12 — 2026-05-05
- 1.30.11 — 2026-05-03
- 1.30.10 — 2026-04-22
- … 628 more at https://npm.io/package/@arcblock/vc/versions

## README

![Verifiable Credentials](https://www.arcblock.io/.netlify/functions/badge/?text=Verifiable+Credentials)

[![docs](https://img.shields.io/badge/powered%20by-arcblock-green.svg)](https://docs.arcblock.io)
[![Gitter](https://badges.gitter.im/ArcBlock/community.svg)](https://gitter.im/ArcBlock/community?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge)

> Javascript library to manipulate Verifiable Credentials (VC) to DID Protocol

## Usage

```terminal
bun install @arcblock/vc
```

```javascript
const VC = require('@arcblock/vc');

const issuer = fromRandom();
const owner = fromRandom();
const vc = create({
  type: 'EmailVerificationCredential',
  issuer: {
    wallet: issuer,
    name: 'DID.KYC.Email',
  },
  subject: {
    id: owner.address,
    key: 'value',
    method: 'SHA3',
  },
});

console.log(vc);

const result = VC.verify({ vc, ownerDid: owner.address, trustedIssuers: issuer.address });
console.log(result); // true
```

## Documentation

For full documentation, checkout [https://asset-chain.netlify.com](https://asset-chain.netlify.com/)

---
_Source: https://npm.io/package/@arcblock/vc · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
