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

key-did-resolver

Package Overview
Dependencies
Maintainers
7
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

key-did-resolver - npm Package Compare versions

Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2

8

lib/ed25519.js

@@ -1,2 +0,2 @@

import * as u8a from 'uint8arrays';
import { toString } from 'uint8arrays/to-string';
import { convertPublicKeyToX25519 } from '@stablelib/ed25519';

@@ -8,3 +8,3 @@ function encodeKey(key) {

bytes.set(key, 2);
return `z${u8a.toString(bytes, 'base58btc')}`;
return `z${toString(bytes, 'base58btc')}`;
}

@@ -23,3 +23,3 @@ export function keyToDidDoc(pubKeyBytes, fingerprint) {

controller: did,
publicKeyBase58: u8a.toString(pubKeyBytes, 'base58btc'),
publicKeyBase58: toString(pubKeyBytes, 'base58btc'),
},

@@ -36,3 +36,3 @@ ],

controller: did,
publicKeyBase58: u8a.toString(x25519PubBytes, 'base58btc'),
publicKeyBase58: toString(x25519PubBytes, 'base58btc'),
},

@@ -39,0 +39,0 @@ ],

{
"name": "key-did-resolver",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Ceramic did:key method resolver",

@@ -41,7 +41,6 @@ "keywords": [

"devDependencies": {
"@types/node": "^17.0.5",
"@types/varint": "^6.0.0",
"did-resolver": "^3.1.5"
},
"gitHead": "fb9c06e9cdce755eede1a2563ce62f8083e4e06a"
"gitHead": "56c344ee94ab26dde88fb1dbee7441c9339b1d45"
}

Sorry, the diff of this file is not supported yet

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