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

ethr-did-resolver

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethr-did-resolver - npm Package Compare versions

Comparing version 0.0.7 to 0.0.8

8

lib/register.js

@@ -48,2 +48,4 @@ 'use strict';

var _buffer = require('buffer');
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -121,6 +123,6 @@

case 'publicKeyBase64':
pk.publicKeyBase64 = Buffer.from(event.value.slice(2), 'hex').toString('base64');
pk.publicKeyBase64 = _buffer.Buffer.from(event.value.slice(2), 'hex').toString('base64');
break;
case 'publicKeyBase58':
pk.publicKeyBase58 = Buffer.from(event.value.slice(2), 'hex').toString('base58');
pk.publicKeyBase58 = _buffer.Buffer.from(event.value.slice(2), 'hex').toString('base58');
break;

@@ -133,3 +135,3 @@ default:

case 'service':
services[key] = { type: type, serviceEndpoint: Buffer.from(event.value.slice(2), 'hex').toString() };
services[key] = { type: type, serviceEndpoint: _buffer.Buffer.from(event.value.slice(2), 'hex').toString() };
break;

@@ -136,0 +138,0 @@ }

{
"name": "ethr-did-resolver",
"version": "0.0.7",
"version": "0.0.8",
"description": "Resolve DID documents around ethereum addresses",

@@ -49,2 +49,3 @@ "main": "lib/register.js",

"babel-runtime": "^6.26.0",
"buffer": "^5.1.0",
"did-resolver": "^0.0.4",

@@ -51,0 +52,0 @@ "ethjs-abi": "^0.2.1",

@@ -7,3 +7,3 @@ import { registerMethod } from 'did-resolver'

import DidRegistryContract from '../contracts/ethr-did-registry.json'
import { Buffer } from 'buffer'
export const REGISTRY = '0xc1b66dea11f8f321b7981e1666fdaf3637fe0f61'

@@ -10,0 +10,0 @@

Sorry, the diff of this file is too big to display

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