uport-did-resolver
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -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": { |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
18982
373
1