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

uport-did-resolver

Package Overview
Dependencies
Maintainers
2
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

uport-did-resolver - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

14

lib/__tests__/register-test.js

@@ -28,3 +28,3 @@ 'use strict';

'id': 'did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX#keys-1',
'type': 'EcdsaPublicKeySecp256k1',
'type': 'Secp256k1VerificationKey2018',
'owner': 'did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX',

@@ -37,2 +37,6 @@ 'publicKeyHex': '04613bb3a4874d27032618f020614c21cbe4c4e4781687525f6674089f9bd3d6c7f6eb13569053d31715a3ba32e0b791b97922af6387f087d6b5548c06944ab062'

'publicKeyBase64': 'QCFPBLm5pwmuTOu+haxv0+Vpmr6Rrz/DEEvbcjktQnQ='
}],
'authentication': [{
'type': 'Secp256k1SignatureAuthentication2018',
'publicKey': 'did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX#keys-1'
}]

@@ -53,3 +57,3 @@ };

'id': 'did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX#keys-1',
'type': 'EcdsaPublicKeySecp256k1',
'type': 'Secp256k1VerificationKey2018',
'owner': 'did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX',

@@ -64,3 +68,7 @@ 'publicKeyHex': '04613bb3a4874d27032618f020614c21cbe4c4e4781687525f6674089f9bd3d6c7f6eb13569053d31715a3ba32e0b791b97922af6387f087d6b5548c06944ab062'

'image': { '@type': 'ImageObject', 'name': 'avatar', 'contentUrl': '/ipfs/QmSCnmXC91Arz2gj934Ce4DeR7d9fULWRepjzGMX6SSazB' }
}
},
'authentication': [{
'type': 'Secp256k1SignatureAuthentication2018',
'publicKey': 'did:uport:2nQtiQG6Cgm1GYTBaaKAgr76uY7iSexUkqX#keys-1'
}]
};

@@ -67,0 +75,0 @@

@@ -28,6 +28,12 @@ 'use strict';

id: did + '#keys-1',
type: 'EcdsaPublicKeySecp256k1',
type: 'Secp256k1VerificationKey2018',
owner: did,
publicKeyHex: legacy.publicKey.slice(2)
publicKeyHex: legacy.publicKey.match(/^0x/) ? legacy.publicKey.slice(2) : legacy.publicKey
}];
var authentication = [{
type: 'Secp256k1SignatureAuthentication2018',
publicKey: did + '#keys-1'
}];
if (legacy.publicEncKey) {

@@ -44,3 +50,4 @@ publicKey.push({

id: did,
publicKey: publicKey
publicKey: publicKey,
authentication: authentication
};

@@ -47,0 +54,0 @@ if (legacy.name || legacy.description || legacy.image) {

{
"name": "uport-did-resolver",
"version": "0.0.2",
"version": "0.0.3",
"description": "Resolve uPort DID documents",

@@ -20,3 +20,4 @@ "main": "lib/register.js",

"build:es5": "./node_modules/.bin/babel src -d lib",
"build": "yarn build:es5 && yarn test"
"build": "yarn build:es5 && yarn test",
"prepublish": "npm run build:es5"
},

@@ -23,0 +24,0 @@ "jest": {

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