Security News
Bun 1.2 Released with 90% Node.js Compatibility and Built-in S3 Object Support
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
@arcblock/did-util
Advanced tools
Helper functions to calculate did
npm install @arcblock/did-util
// or
yarn add @arcblock/did-util
const { types } = require('@arcblock/mcrypto');
const { Authenticator, Handlers } = require('@arcblock/did-util');
const { fromSecretKey, WalletType } = require('@arcblock/forge-wallet');
const type = WalletType({
role: types.RoleType.ROLE_APPLICATION,
pk: types.KeyType.ED25519,
hash: types.HashType.SHA3,
});
const wallet = fromSecretKey(process.env.APP_SK, type).toJSON();
module.exports = new Authenticator({
wallet,
baseUrl: 'http://wangshijun.natapp1.cc',
appInfo: {
chainHost: 'http://did-workshop.arcblock.co:8210/api',
chainId: 'forge',
chainToken: 'TBA',
copyright: 'https://example-application/copyright',
decimals: 16,
description: 'Starter projects to develop web application on forge',
icon: '/images/logo@2x.png',
name: 'Forge Web Starter',
path: 'https://arcwallet.io/i/',
publisher: `did:abt:${wallet.address}`,
subtitle: 'Starter projects to develop web application on forge',
},
});
For full documentation, checkout https://forge-js.netlify.com
Name | Website |
---|---|
wangshijun | https://ocap.arcblock.io |
FAQs
Helper function to calculate did
The npm package @arcblock/did-util receives a total of 2,186 weekly downloads. As such, @arcblock/did-util popularity was classified as popular.
We found that @arcblock/did-util demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.
Security News
Biden's executive order pushes for AI-driven cybersecurity, software supply chain transparency, and stronger protections for federal and open source systems.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.