@transmute/did-context
Advanced tools
Comparing version 0.6.1-unstable.12 to 0.6.1-unstable.13
const DID_CONTEXT_V1_URL = "https://www.w3.org/ns/did/v1"; | ||
const DID_CONTEXT_TRANSMUTE_V1_URL = "https://ns.did.ai/transmute/v1"; | ||
module.exports = { DID_CONTEXT_V1_URL }; | ||
module.exports = { DID_CONTEXT_V1_URL, DID_CONTEXT_TRANSMUTE_V1_URL }; |
{ | ||
"@context": { | ||
"@version": 1.1, | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"dc": "http://purl.org/dc/terms/", | ||
"schema": "http://schema.org/", | ||
"sec": "https://w3id.org/security#", | ||
"didv": "https://w3id.org/did#", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"EcdsaSecp256k1VerificationKey2019": "sec:EcdsaSecp256k1VerificationKey2019", | ||
"Ed25519Signature2018": "sec:Ed25519Signature2018", | ||
"Ed25519VerificationKey2018": "sec:Ed25519VerificationKey2018", | ||
"JsonWebKey2020": "sec:JsonWebKey2020", | ||
"JsonWebSignature2020": "sec:JsonWebSignature2020", | ||
"RsaVerificationKey2018": "sec:RsaVerificationKey2018", | ||
"SchnorrSecp256k1VerificationKey2019": "sec:SchnorrSecp256k1VerificationKey2019", | ||
"X25519KeyAgreementKey2019": "sec:X25519KeyAgreementKey2019", | ||
"ServiceEndpointProxyService": "didv:ServiceEndpointProxyService", | ||
"LinkedDomains": "https://identity.foundation/.well-known/resources/did-configuration/#LinkedDomains", | ||
"alsoKnownAs": { | ||
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs", | ||
"@type": "@id", | ||
"@container": "@set" | ||
"@type": "@id" | ||
}, | ||
"assertionMethod": { | ||
"@id": "sec:assertionMethod", | ||
"@id": "https://w3id.org/security#assertionMethod", | ||
"@type": "@id", | ||
@@ -32,3 +17,3 @@ "@container": "@set" | ||
"authentication": { | ||
"@id": "sec:authenticationMethod", | ||
"@id": "https://w3id.org/security#authenticationMethod", | ||
"@type": "@id", | ||
@@ -38,3 +23,3 @@ "@container": "@set" | ||
"capabilityDelegation": { | ||
"@id": "sec:capabilityDelegationMethod", | ||
"@id": "https://w3id.org/security#capabilityDelegationMethod", | ||
"@type": "@id", | ||
@@ -44,3 +29,3 @@ "@container": "@set" | ||
"capabilityInvocation": { | ||
"@id": "sec:capabilityInvocationMethod", | ||
"@id": "https://w3id.org/security#capabilityInvocationMethod", | ||
"@type": "@id", | ||
@@ -50,40 +35,25 @@ "@container": "@set" | ||
"controller": { | ||
"@id": "sec:controller", | ||
"@id": "https://w3id.org/security#controller", | ||
"@type": "@id" | ||
}, | ||
"created": { | ||
"@id": "dc:created", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"blockchainAccountId": "sec:blockchainAccountId", | ||
"keyAgreement": { | ||
"@id": "sec:keyAgreementMethod", | ||
"@id": "https://w3id.org/security#keyAgreementMethod", | ||
"@type": "@id", | ||
"@container": "@set" | ||
}, | ||
"publicKey": { | ||
"@id": "sec:publicKey", | ||
"@type": "@id", | ||
"@container": "@set" | ||
}, | ||
"publicKeyBase58": "sec:publicKeyBase58", | ||
"publicKeyJwk": { | ||
"@id": "sec:publicKeyJwk", | ||
"@type": "@json" | ||
}, | ||
"service": { | ||
"@id": "didv:service", | ||
"@id": "https://www.w3.org/ns/did#service", | ||
"@type": "@id", | ||
"@container": "@set" | ||
"@context": { | ||
"@protected": true, | ||
"id": "@id", | ||
"type": "@type", | ||
"serviceEndpoint": { | ||
"@id": "https://www.w3.org/ns/did#serviceEndpoint", | ||
"@type": "@id" | ||
} | ||
} | ||
}, | ||
"serviceEndpoint": { | ||
"@id": "didv:serviceEndpoint", | ||
"@type": "@id" | ||
}, | ||
"updated": { | ||
"@id": "dc:modified", | ||
"@type": "xsd:dateTime" | ||
}, | ||
"verificationMethod": { | ||
"@id": "sec:verificationMethod", | ||
"@id": "https://w3id.org/security#verificationMethod", | ||
"@type": "@id" | ||
@@ -90,0 +60,0 @@ } |
@@ -6,3 +6,4 @@ const constants = require("./constants"); | ||
contexts.set(constants.DID_CONTEXT_V1_URL, require("./contexts/did-v1.json")); | ||
contexts.set(constants.DID_CONTEXT_TRANSMUTE_V1_URL, require("./contexts/did-v1-transmute.json")); | ||
module.exports = { constants, contexts }; |
{ | ||
"name": "@transmute/did-context", | ||
"version": "0.6.1-unstable.12", | ||
"version": "0.6.1-unstable.13", | ||
"description": "", | ||
@@ -18,3 +18,3 @@ "main": "index.js", | ||
}, | ||
"gitHead": "8207f32e28c5630d37defa9eef3f1e912f1933bc" | ||
"gitHead": "5a2e980c62b2b4a6afdbd3cd40187208223487b5" | ||
} |
import { constants, contexts } from "./index.js"; | ||
export const constants: { | ||
DID_CONTEXT_V1_URL: "https://www.w3.org/ns/did/v1"; | ||
DID_CONTEXT_V1_URL: 'https://www.w3.org/ns/did/v1'; | ||
DID_CONTEXT_TRANSMUTE_V1_URL: 'https://ns.did.ai/transmute/v1'; | ||
}; | ||
@@ -6,0 +7,0 @@ |
8
15049
93