Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ can be created by the following structure.DisclosureFrame describes what to be d
"namespace" :"xyz",
"group" : "xyz",
"key":"test",
"format":"vc+sd-jwt",
"format":"dc+sd-jwt",
"credential":{
"@context": [
"https://www.w3.org/2018/credentials/v1",
Expand Down
28 changes: 18 additions & 10 deletions design/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
Default("")
})
Field(5, "format", String, "identifies the format of the credential.", func() {
Example("ldp_vc or vc+sd-jwt")
Example("ldp_vc or dc+sd-jwt")

Check failure on line 48 in design/types.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "ldp_vc or dc+sd-jwt" 5 times.

See more on https://sonarcloud.io/project/issues?id=eclipse-xfsc_crypto-provider-service&issues=AaCRhXTu6BeFNClElOGg&open=AaCRhXTu6BeFNClElOGg&pullRequest=20
Default("ldp_vc")
Enum("ldp_vc", "vc+sd-jwt")
Enum("ldp_vc", "dc+sd-jwt")

Check failure on line 50 in design/types.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Define a constant instead of duplicating this literal "dc+sd-jwt" 5 times.

See more on https://sonarcloud.io/project/issues?id=eclipse-xfsc_crypto-provider-service&issues=AaCRhXTu6BeFNClElOGf&open=AaCRhXTu6BeFNClElOGf&pullRequest=20
})
Field(6, "nonce", String, "Proof challenge", func() {
Example("3483492392vvv-fff")
Expand Down Expand Up @@ -80,6 +80,7 @@
Field(14, "x-did", String, "Did", func() {
Example("https://test")
})
Field(14, "status", Boolean, "Status embedded or not", func() {})

Check failure on line 83 in design/types.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Add a nested comment explaining why this function is empty or complete the implementation.

See more on https://sonarcloud.io/project/issues?id=eclipse-xfsc_crypto-provider-service&issues=AaCRhXTu6BeFNClElOGd&open=AaCRhXTu6BeFNClElOGd&pullRequest=20
Required("namespace", "key", "credential", "x-tenantid", "x-did", "x-origin")
})

Expand All @@ -105,15 +106,15 @@
Default("jsonwebsignature2020")
})
Field(8, "format", String, "identifies the format of the credential.", func() {
Example("ldp_vc or vc+sd-jwt")
Example("ldp_vc or dc+sd-jwt")
Default("ldp_vc")
Enum("ldp_vc", "vc+sd-jwt")
Enum("ldp_vc", "dc+sd-jwt")
})
Field(9, "disclosureFrame", ArrayOf(String), "Disclosed Attributes", func() {
Example([]string{"email"})
})
Field(10, "aud", String, "audience", func() {
Example("http://...")

Check warning on line 117 in design/types.go

View check run for this annotation

SonarQubeCloud / SonarCloud Code Analysis

Using HTTP protocol is insecure. Use HTTPS instead.

See more on https://sonarcloud.io/project/issues?id=eclipse-xfsc_crypto-provider-service&issues=AaCRhXTu6BeFNClElOGe&open=AaCRhXTu6BeFNClElOGe&pullRequest=20
})
Required("namespace", "key", "presentation")
})
Expand Down Expand Up @@ -179,9 +180,9 @@
Default("")
})
Field(7, "format", String, "identifies the format of the credential.", func() {
Example("ldp_vc or vc+sd-jwt")
Example("ldp_vc or dc+sd-jwt")
Default("ldp_vc")
Enum("ldp_vc", "vc+sd-jwt")
Enum("ldp_vc", "dc+sd-jwt")
})
Field(8, "nonce", String, "Proof challenge", func() {
Example("3483492392vvv-fff")
Expand Down Expand Up @@ -223,9 +224,9 @@
var VerifyCredentialRequest = Type("VerifyCredentialRequest", func() {
Field(1, "credential", Bytes, "Verifiable Credential in JSON format.")
Field(2, "x-format", String, "format", func() {
Example("ldp_vc or vc+sd-jwt")
Example("ldp_vc or dc+sd-jwt")
Default("ldp_vc")
Enum("ldp_vc", "vc+sd-jwt")
Enum("ldp_vc", "dc+sd-jwt")
})
Field(3, "x-namespace", String, "Namespace for status check")
Field(4, "x-group", String, "Group for status check")
Expand All @@ -247,9 +248,9 @@
Example([]string{"email"})
})
Field(3, "x-format", String, "format", func() {
Example("ldp_vc or vc+sd-jwt")
Example("ldp_vc or dc+sd-jwt")
Default("ldp_vc")
Enum("ldp_vc", "vc+sd-jwt")
Enum("ldp_vc", "dc+sd-jwt")
})
Field(3, "aud", String, "expected audience", func() {
})
Expand Down Expand Up @@ -420,6 +421,13 @@
Field(2, "controller", String, "controler of the document")
Field(3, "verificationMethod", ArrayOf(DIDVerificationMethod), "methods of the document")
Field(4, "service", ArrayOf(serviceEndpoint), "serviceendpoints")
Field(5, "assertionMethod", ArrayOf(String), "Verification methods authorized for assertion purposes.", func() {

Example([]string{
"did:web:example.com#key1",
})

})
Required("id", "controller")
})

Expand Down
4 changes: 2 additions & 2 deletions docs/Signer.postman_collection.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
],
"body": {
"mode": "raw",
"raw": "{\n \"namespace\" :\"transit\",\n \"group\" : \"\",\n \"key\":\"eckey\",\n \"status\":false,\n \"format\":\"vc+sd-jwt\",\n \"credentialSubject\": {\n\t\"!disclose:testdata\": {\"!disclose:hello\":\"world\", \"testXY\":\"1234\"}\n },\n \"issuanceDate\": \"2022-06-02T17:24:05.032533+03:00\",\n \"type\": \"VerifiableCredential\"\n}",
"raw": "{\n \"namespace\" :\"transit\",\n \"group\" : \"\",\n \"key\":\"eckey\",\n \"status\":false,\n \"format\":\"dc+sd-jwt\",\n \"credentialSubject\": {\n\t\"!disclose:testdata\": {\"!disclose:hello\":\"world\", \"testXY\":\"1234\"}\n },\n \"issuanceDate\": \"2022-06-02T17:24:05.032533+03:00\",\n \"type\": \"VerifiableCredential\"\n}",
"options": {
"raw": {
"language": "json"
Expand Down Expand Up @@ -126,7 +126,7 @@
"header": [
{
"key": "x-format",
"value": "vc+sd-jwt",
"value": "dc+sd-jwt",
"type": "default",
"disabled": true
}
Expand Down
20 changes: 10 additions & 10 deletions gen/http/cli/signer/cli.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion gen/http/openapi.json

Large diffs are not rendered by default.

Loading
Loading