* update go-mod httpsig
This commit is contained in:
Lukas Matt 2019-09-16 00:56:43 +02:00
parent d87793a589
commit 85d191bffb
3 changed files with 152 additions and 2 deletions

149
astool/security-v1.jsonld Normal file
View File

@ -0,0 +1,149 @@
{
"@context": [
{
"as": "https://www.w3.org/ns/activitystreams",
"owl": "http://www.w3.org/2002/07/owl#",
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"rfc": "https://tools.ietf.org/html/",
"schema": "http://schema.org/",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
{
"domain": "rdfs:domain",
"example": "schema:workExample",
"isDefinedBy": "rdfs:isDefinedBy",
"mainEntity": "schema:mainEntity",
"members": "owl:members",
"name": "schema:name",
"notes": "rdfs:comment",
"range": "rdfs:range",
"subClassOf": "rdfs:subClassOf",
"disjointWith": "owl:disjointWith",
"subPropertyOf": "rdfs:subPropertyOf",
"unionOf": "owl:unionOf",
"url": "schema:URL"
}
],
"id": "https://w3id.org/security/v1",
"type": "owl:Ontology",
"name": "W3IDSecurityV1",
"members": [
{
"id": "https://w3id.org/security/v1#PublicKey",
"type": "owl:Class",
"notes": "A public key represents a public cryptographical key for a user",
"subClassOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Object",
"name": "as:Object"
}
],
"name": "PublicKey",
"url": "https://w3id.org/security/v1#PublicKey"
},
{
"id": "https://w3id.org/security/v1#dfn-publickey",
"type": [
"rdf:Property",
"owl:ObjectProperty"
],
"example": {},
"notes": "The public key for an ActivityStreams actor",
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Application",
"name": "as:Application"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Group",
"name": "as:Group"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Organization",
"name": "as:Organization"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Person",
"name": "as:Person"
},
{
"type": "owl:Class",
"url": "https://www.w3.org/ns/activitystreams#Service",
"name": "as:Service"
}
]
},
"isDefinedBy": "https://w3id.org/security/v1#dfn-publickey",
"range": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://w3id.org/security/v1#PublicKey",
"name": "PublicKey"
}
]
},
"name": "publicKey",
"url": "https://w3id.org/security/v1#dfn-publickey"
},
{
"id": "https://w3id.org/security/v1#dfn-publickeypem",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"notes": "The public key PEM encoded data for an ActivityStreams actor",
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://w3id.org/security/v1#PublicKey",
"name": "PublicKey"
}
]
},
"isDefinedBy": "https://w3id.org/security/v1#dfn-publickeypem",
"range": {
"type": "owl:Class",
"unionOf": "xsd:string"
},
"name": "publicKeyPem",
"url": "https://w3id.org/security/v1#dfn-publickeypem"
},
{
"id": "https://w3id.org/security/v1#dfn-owner",
"type": [
"rdf:Property",
"owl:FunctionalProperty"
],
"notes": "The owner of the public key for an ActivityStreams actor",
"domain": {
"type": "owl:Class",
"unionOf": [
{
"type": "owl:Class",
"url": "https://w3id.org/security/v1#PublicKey",
"name": "PublicKey"
}
]
},
"isDefinedBy": "https://w3id.org/security/v1#dfn-owner",
"range": {
"type": "owl:Class",
"unionOf": "xsd:anyURI"
},
"name": "owner",
"url": "https://w3id.org/security/v1#dfn-owner"
}
]
}

3
go.mod
View File

@ -4,8 +4,7 @@ go 1.12
require (
github.com/dave/jennifer v1.3.0
github.com/go-fed/activity v0.4.0
github.com/go-fed/httpsig v0.1.0
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5
github.com/go-test/deep v1.0.1
github.com/golang/mock v1.2.0
)

2
go.sum
View File

@ -4,6 +4,8 @@ github.com/go-fed/activity v0.4.0 h1:1YOYLMT+x2hx+AtQZNQHOGBXWnn2CF/10jGxTjaOEsw
github.com/go-fed/activity v0.4.0/go.mod h1:QeFu271luhA2o47U3/DR6iWtxiB9Fw2dKGbvL8edM9E=
github.com/go-fed/httpsig v0.1.0 h1:6F2OxRVnNTN4OPN+Mc2jxs2WEay9/qiHT/jphlvAwIY=
github.com/go-fed/httpsig v0.1.0/go.mod h1:T56HUNYZUQ1AGUzhAYPugZfp36sKApVnGBgKlIY+aIE=
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5 h1:WLvFZqoXnuVTBKA6U/1FnEHNQ0Rq0QM0rGhY8Tx6R1g=
github.com/go-fed/httpsig v0.1.1-0.20190914113940-c2de3672e5b5/go.mod h1:T56HUNYZUQ1AGUzhAYPugZfp36sKApVnGBgKlIY+aIE=
github.com/go-test/deep v1.0.1 h1:UQhStjbkDClarlmv0am7OXXO4/GaPdCGiUiMTvi28sg=
github.com/go-test/deep v1.0.1/go.mod h1:wGDj63lr65AM2AQyKZd/NYHGb0R+1RLqB8NKt3aSFNA=
github.com/golang/mock v1.2.0 h1:28o5sBqPkBsMGnC6b4MvE2TzSr5/AT4c/1fLqVGIwlk=