Simplified context definitions

This commit is contained in:
Michael 2023-09-03 18:57:30 +00:00
parent a275f0a719
commit 6c42371d37
2 changed files with 67 additions and 82 deletions

View File

@ -7,66 +7,56 @@
"@type": "@id" "@type": "@id"
}, },
"DataIntegrityProof": { "DataIntegrityProof": {
"@id": "https://w3id.org/security#DataIntegrityProof", "@id": "https://w3id.org/security#DataIntegrityProof"
"@context": { },
"@protected": true, "challenge": "https://w3id.org/security#challenge",
"id": "@id", "created": {
"type": "@type", "@id": "http://purl.org/dc/terms/created",
"challenge": "https://w3id.org/security#challenge", "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
"created": { },
"@id": "http://purl.org/dc/terms/created", "domain": "https://w3id.org/security#domain",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" "expires": {
}, "@id": "https://w3id.org/security#expiration",
"domain": "https://w3id.org/security#domain", "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
"expires": { },
"@id": "https://w3id.org/security#expiration", "nonce": "https://w3id.org/security#nonce",
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" "cryptosuite": "https://w3id.org/security#cryptosuite",
}, "proofValue": {
"nonce": "https://w3id.org/security#nonce", "@id": "https://w3id.org/security#proofValue",
"proofPurpose": { "@type": "https://w3id.org/security#multibase"
"@id": "https://w3id.org/security#proofPurpose", },
"@type": "@vocab", "verificationMethod": {
"@context": { "@id": "https://w3id.org/security#verificationMethod",
"@protected": true, "@type": "@id"
"id": "@id", },
"type": "@type", "proofPurpose": {
"assertionMethod": { "@id": "https://w3id.org/security#proofPurpose",
"@id": "https://w3id.org/security#assertionMethod", "@type": "@vocab"
"@type": "@id", },
"@container": "@set" "assertionMethod": {
}, "@id": "https://w3id.org/security#assertionMethod",
"authentication": { "@type": "@id",
"@id": "https://w3id.org/security#authenticationMethod", "@container": "@set"
"@type": "@id", },
"@container": "@set" "authentication": {
}, "@id": "https://w3id.org/security#authenticationMethod",
"capabilityInvocation": { "@type": "@id",
"@id": "https://w3id.org/security#capabilityInvocationMethod", "@container": "@set"
"@type": "@id", },
"@container": "@set" "capabilityInvocation": {
}, "@id": "https://w3id.org/security#capabilityInvocationMethod",
"capabilityDelegation": { "@type": "@id",
"@id": "https://w3id.org/security#capabilityDelegationMethod", "@container": "@set"
"@type": "@id", },
"@container": "@set" "capabilityDelegation": {
}, "@id": "https://w3id.org/security#capabilityDelegationMethod",
"keyAgreement": { "@type": "@id",
"@id": "https://w3id.org/security#keyAgreementMethod", "@container": "@set"
"@type": "@id", },
"@container": "@set" "keyAgreement": {
} "@id": "https://w3id.org/security#keyAgreementMethod",
} "@type": "@id",
}, "@container": "@set"
"cryptosuite": "https://w3id.org/security#cryptosuite",
"proofValue": {
"@id": "https://w3id.org/security#proofValue",
"@type": "https://w3id.org/security#multibase"
},
"verificationMethod": {
"@id": "https://w3id.org/security#verificationMethod",
"@type": "@id"
}
}
} }
} }
} }

View File

@ -3,28 +3,23 @@
"id": "@id", "id": "@id",
"type": "@type", "type": "@type",
"Multikey": { "Multikey": {
"@id": "https://w3id.org/security#Multikey", "@id": "https://w3id.org/security#Multikey"
"@context": { },
"@protected": true, "controller": {
"id": "@id", "@id": "https://w3id.org/security#controller",
"type": "@type", "@type": "@id"
"controller": { },
"@id": "https://w3id.org/security#controller", "revoked": {
"@type": "@id" "@id": "https://w3id.org/security#revoked",
}, "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
"revoked": { },
"@id": "https://w3id.org/security#revoked", "publicKeyMultibase": {
"@type": "http://www.w3.org/2001/XMLSchema#dateTime" "@id": "https://w3id.org/security#publicKeyMultibase",
}, "@type": "https://w3id.org/security#multibase"
"publicKeyMultibase": { },
"@id": "https://w3id.org/security#publicKeyMultibase", "secretKeyMultibase": {
"@type": "https://w3id.org/security#multibase" "@id": "https://w3id.org/security#secretKeyMultibase",
}, "@type": "https://w3id.org/security#multibase"
"secretKeyMultibase": {
"@id": "https://w3id.org/security#secretKeyMultibase",
"@type": "https://w3id.org/security#multibase"
}
}
} }
} }
} }