New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@identity.com/did-io-driver-sol

Package Overview
Dependencies
Maintainers
14
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@identity.com/did-io-driver-sol

A SOL driver for the [did.io](https://github.com/digitalbazaar/did-io) DID client.

  • 1.0.0-beta.0
  • beta
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
526
increased by61.35%
Maintainers
14
Weekly downloads
 
Created
Source

DID.io SOL Driver

A SOL driver for the did.io DID client.

Usage

The SOL driver supports the generate() and get() functions only, and generates 'sparse' DID documents, i.e. those derived from an initial private key with no additional properties.

To generate a DID:

import { CachedResolver } from '@digitalbazaar/did-io';
import didSol from '@identity.com/did-io-driver-sol';

const resolver = new CachedResolver(); 
resolver.use(didSol.driver({payer: PAYER_KEY}))

// Generate a DID
const did = await resolver.generate({
  method: 'sol',
  cluster: 'devnet'   // omit for mainnet
})

where PAYER_KEY is the private key of the transaction payer on solana and OWNER_KEY is the public key of the owner of the DID, both encrypted as base58 strings.

FAQs

Package last updated on 14 Jan 2022

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc