aboutsummaryrefslogtreecommitdiffstats
path: root/library/w3org
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-01-11 16:27:57 +0000
committerMario <mario@mariovavti.com>2024-01-11 16:27:57 +0000
commitaac406a24512364558ba3a88840bd15057033056 (patch)
tree406465f0b1ab1529634dea4a28c5ce2943701215 /library/w3org
parentffdf54b097f2c92392396d4636a779f47d226f02 (diff)
downloadvolse-hubzilla-aac406a24512364558ba3a88840bd15057033056.tar.gz
volse-hubzilla-aac406a24512364558ba3a88840bd15057033056.tar.bz2
volse-hubzilla-aac406a24512364558ba3a88840bd15057033056.zip
provide some more jsonld builtins
Diffstat (limited to 'library/w3org')
-rw-r--r--library/w3org/did-v1.jsonld58
-rw-r--r--library/w3org/security-data-integrity-v1.jsonld74
-rw-r--r--library/w3org/security-multikey-v1.jsonld35
-rw-r--r--library/w3org/socialweb-webfinger.jsonld10
4 files changed, 177 insertions, 0 deletions
diff --git a/library/w3org/did-v1.jsonld b/library/w3org/did-v1.jsonld
new file mode 100644
index 000000000..b447d0108
--- /dev/null
+++ b/library/w3org/did-v1.jsonld
@@ -0,0 +1,58 @@
+{
+ "@context": {
+ "@protected": true,
+ "id": "@id",
+ "type": "@type",
+
+ "alsoKnownAs": {
+ "@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
+ "@type": "@id"
+ },
+ "assertionMethod": {
+ "@id": "https://w3id.org/security#assertionMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "authentication": {
+ "@id": "https://w3id.org/security#authenticationMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "capabilityDelegation": {
+ "@id": "https://w3id.org/security#capabilityDelegationMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "capabilityInvocation": {
+ "@id": "https://w3id.org/security#capabilityInvocationMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "controller": {
+ "@id": "https://w3id.org/security#controller",
+ "@type": "@id"
+ },
+ "keyAgreement": {
+ "@id": "https://w3id.org/security#keyAgreementMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "service": {
+ "@id": "https://www.w3.org/ns/did#service",
+ "@type": "@id",
+ "@context": {
+ "@protected": true,
+ "id": "@id",
+ "type": "@type",
+ "serviceEndpoint": {
+ "@id": "https://www.w3.org/ns/did#serviceEndpoint",
+ "@type": "@id"
+ }
+ }
+ },
+ "verificationMethod": {
+ "@id": "https://w3id.org/security#verificationMethod",
+ "@type": "@id"
+ }
+ }
+}
diff --git a/library/w3org/security-data-integrity-v1.jsonld b/library/w3org/security-data-integrity-v1.jsonld
new file mode 100644
index 000000000..d8a50543e
--- /dev/null
+++ b/library/w3org/security-data-integrity-v1.jsonld
@@ -0,0 +1,74 @@
+{
+ "@context": {
+ "id": "@id",
+ "type": "@type",
+ "@protected": true,
+ "proof": {
+ "@id": "https://w3id.org/security#proof",
+ "@type": "@id",
+ "@container": "@graph"
+ },
+ "DataIntegrityProof": {
+ "@id": "https://w3id.org/security#DataIntegrityProof",
+ "@context": {
+ "@protected": true,
+ "id": "@id",
+ "type": "@type",
+ "challenge": "https://w3id.org/security#challenge",
+ "created": {
+ "@id": "http://purl.org/dc/terms/created",
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
+ },
+ "domain": "https://w3id.org/security#domain",
+ "expires": {
+ "@id": "https://w3id.org/security#expiration",
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
+ },
+ "nonce": "https://w3id.org/security#nonce",
+ "proofPurpose": {
+ "@id": "https://w3id.org/security#proofPurpose",
+ "@type": "@vocab",
+ "@context": {
+ "@protected": true,
+ "id": "@id",
+ "type": "@type",
+ "assertionMethod": {
+ "@id": "https://w3id.org/security#assertionMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "authentication": {
+ "@id": "https://w3id.org/security#authenticationMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "capabilityInvocation": {
+ "@id": "https://w3id.org/security#capabilityInvocationMethod",
+ "@type": "@id",
+ "@container": "@set"
+ },
+ "capabilityDelegation": {
+ "@id": "https://w3id.org/security#capabilityDelegationMethod",
+ "@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"
+ }
+ }
+ }
+ }
+} \ No newline at end of file
diff --git a/library/w3org/security-multikey-v1.jsonld b/library/w3org/security-multikey-v1.jsonld
new file mode 100644
index 000000000..43ac7f0cb
--- /dev/null
+++ b/library/w3org/security-multikey-v1.jsonld
@@ -0,0 +1,35 @@
+{
+ "@context": {
+ "id": "@id",
+ "type": "@type",
+ "@protected": true,
+ "Multikey": {
+ "@id": "https://w3id.org/security#Multikey",
+ "@context": {
+ "@protected": true,
+ "id": "@id",
+ "type": "@type",
+ "controller": {
+ "@id": "https://w3id.org/security#controller",
+ "@type": "@id"
+ },
+ "revoked": {
+ "@id": "https://w3id.org/security#revoked",
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
+ },
+ "expires": {
+ "@id": "https://w3id.org/security#expiration",
+ "@type": "http://www.w3.org/2001/XMLSchema#dateTime"
+ },
+ "publicKeyMultibase": {
+ "@id": "https://w3id.org/security#publicKeyMultibase",
+ "@type": "https://w3id.org/security#multibase"
+ },
+ "secretKeyMultibase": {
+ "@id": "https://w3id.org/security#secretKeyMultibase",
+ "@type": "https://w3id.org/security#multibase"
+ }
+ }
+ }
+ }
+}
diff --git a/library/w3org/socialweb-webfinger.jsonld b/library/w3org/socialweb-webfinger.jsonld
new file mode 100644
index 000000000..fedf288da
--- /dev/null
+++ b/library/w3org/socialweb-webfinger.jsonld
@@ -0,0 +1,10 @@
+{
+ "@context": {
+ "wf": "https://purl.archive.org/socialweb/webfinger#",
+ "xsd": "http://www.w3.org/2001/XMLSchema#",
+ "webfinger": {
+ "@id": "wf:webfinger",
+ "@type": "xsd:string"
+ }
+ }
+}