key-did-resolver
Advanced tools
Comparing version 2.0.0-alpha.1 to 2.0.0-alpha.2
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2
9972