Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@transmute/did-wallet

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transmute/did-wallet

A simple javascript key store built for DID and JSON-LD Signatures

  • 0.0.0-3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
2
Weekly downloads
 
Created
Source

@transmute/did-wallet

npm i @transmute/did-wallet --save

🚧 Under Construction.

Description

A simple javascript based key store built for DID and JSON-LD Signatures.

Usage

Creating, locking and exporting...

const wallet = didWallet.create({
  keys: [
    {
      type: "assymetric",
      encoding: "hex",
      publicKey: "1111...",
      privateKey: "222...",
      tags: ["Secp256k1VerificationKey2018", "did:example:123", "WebBrowser"],
      notes: ""
    },
    {
      type: "assymetric",
      encoding: "hex",
      publicKey: "3333...",
      privateKey: "4444...",
      tags: ["Secp256k1VerificationKey2018", "did:example:456", "OfflineOnly"],
      notes: ""
    }
  ]
});
wallet.lock("hard-to-guess-password");
const exported = wallet.export();

Importing, unlocking, and extracting...

const wallet = didWallet.create("l2aUGWXsaiRN_aANnXi9...");
wallet.unlock("hard-to-guess-password");

const onlyWebKeys = wallet.extractByTags(["WebBrowser"]);
let webWallet = didWallet.create({
  keys: [...onlyWebKeys]
});

Encoding and Standards

  • https://tools.ietf.org/html/rfc3156

Developing

npm i
npm run test

FAQs

Package last updated on 13 May 2019

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