New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@verida/3id-utils-node

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@verida/3id-utils-node

This helper library provides utilities to manage 3ID's for blockchain accounts within NodeJs.

latest
Source
npmnpm
Version
1.0.2
Version published
Maintainers
3
Created
Source

Verida 3ID Node Utils

This helper library provides utilities to manage 3ID's for blockchain accounts within NodeJs.

It supports creating a new 3ID and linking an existing blockchain account to an existing 3ID.

Supported blockchains:

  • Ethereum
  • NEAR

Usage

Install the package:

$ yarn install @verida/3id-utils-node

Use the package:

import { Utils } from '../src/index'

const PRIVATE_KEY = '0x....'

const utils = new Utils()
const ceramic1 = await utils.createAccount('ethr', PRIVATE_KEY)
console.log(`3ID created: ${ceramic1.did.id}`)

See the unit tests for more guidance.

Blockchain Notes

Ethereum

Implemented in such a way that signing of consent messages uses ethers.js, instead of Ethereum JSON-RPC.

NEAR

Implemented, but not currently working due to Ceramic not completing NEAR support.

FAQs

Package last updated on 04 Oct 2021

Did you know?

Socket

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.

Install

Related posts