@simbachain/simba-chain-vc 0.3.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitlab-ci.yml +63 -0
- package/CHANGELOG.md +149 -0
- package/LICENCE +20 -0
- package/README.md +32 -0
- package/cog.toml +29 -0
- package/contexts/Anchor2025.jsonld +133 -0
- package/contexts/ERC1912025.jsonld +93 -0
- package/contexts/ERC191Suite2023.jsonld +94 -0
- package/contexts/did-v1.jsonld +58 -0
- package/contexts/odrl-v1.jsonld +200 -0
- package/contexts/prov.jsonld +105 -0
- package/contexts/vc-example-v1.jsonld +53 -0
- package/contexts/vc-example-v2.jsonld +5 -0
- package/contexts/vc-v1.jsonld +237 -0
- package/contexts/vc-v2.jsonld +339 -0
- package/eslint.config.js +10 -0
- package/package.json +49 -0
- package/src/base58.js +143 -0
- package/src/context.js +17 -0
- package/src/index.d.ts +89 -0
- package/src/index.js +403 -0
- package/src/varint.js +79 -0
- package/tests/test_vp.mjs +570 -0
package/.gitlab-ci.yml
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
include:
|
|
2
|
+
- project: simbachain/devops/gitlab-ci-templates
|
|
3
|
+
file: security/security-scanning-datadog.yml
|
|
4
|
+
inputs:
|
|
5
|
+
stage: .pre
|
|
6
|
+
- project: simbachain/devops/gitlab-ci-templates
|
|
7
|
+
file: release/cocogitto/semantic-release.yml
|
|
8
|
+
inputs:
|
|
9
|
+
stage: deploy
|
|
10
|
+
- project: simbachain/devops/gitlab-ci-templates
|
|
11
|
+
file: publish/publish-datadog-metadata.yml
|
|
12
|
+
inputs:
|
|
13
|
+
stage: .post
|
|
14
|
+
|
|
15
|
+
image: node:lts-bookworm
|
|
16
|
+
|
|
17
|
+
cache:
|
|
18
|
+
key: ${CI_COMMIT_REF_SLUG}
|
|
19
|
+
paths:
|
|
20
|
+
- .npm
|
|
21
|
+
|
|
22
|
+
.rule_skip_on_tags_and_releases: &rule_skip_on_tags_and_releases
|
|
23
|
+
rules:
|
|
24
|
+
- if: $CI_COMMIT_TAG || $CI_COMMIT_MESSAGE =~ /^chore\(release\):/ || $CI_COMMIT_MESSAGE =~ /^chore\(version\):/ # Don't run for tags, or releases
|
|
25
|
+
when: never
|
|
26
|
+
- when: on_success
|
|
27
|
+
|
|
28
|
+
test:
|
|
29
|
+
stage: test
|
|
30
|
+
variables:
|
|
31
|
+
DATADOG_API_KEY: "${DD_API_KEY}"
|
|
32
|
+
DD_SERVICE: ${CI_PROJECT_NAME}
|
|
33
|
+
DD_SITE: "datadoghq.com"
|
|
34
|
+
DD_INSIDE_CI: "true"
|
|
35
|
+
DD_ENV: ci
|
|
36
|
+
before_script:
|
|
37
|
+
- npm config set //gitlab.com/api/v4/groups/12257889/-/packages/npm/:_authToken ${NPM_TOKEN}
|
|
38
|
+
- npm ci --cache .npm --prefer-offline
|
|
39
|
+
script:
|
|
40
|
+
- npm install
|
|
41
|
+
- npm run test-ci
|
|
42
|
+
after_script:
|
|
43
|
+
- npx @datadog/datadog-ci junit upload junit.xml
|
|
44
|
+
artifacts:
|
|
45
|
+
when: always
|
|
46
|
+
reports:
|
|
47
|
+
junit:
|
|
48
|
+
- junit.xml
|
|
49
|
+
<<: *rule_skip_on_tags_and_releases
|
|
50
|
+
|
|
51
|
+
publish:
|
|
52
|
+
stage: deploy
|
|
53
|
+
cache:
|
|
54
|
+
key: ${CI_COMMIT_REF_SLUG}
|
|
55
|
+
paths:
|
|
56
|
+
- .npm/
|
|
57
|
+
before_script:
|
|
58
|
+
- npm config set "//${CI_SERVER_HOST}/api/v4/projects/${CI_PROJECT_ID}/packages/npm/:_authToken" "${CI_JOB_TOKEN}"
|
|
59
|
+
- npm ci --cache .npm --prefer-offline
|
|
60
|
+
script:
|
|
61
|
+
- npm publish
|
|
62
|
+
rules:
|
|
63
|
+
- if: $CI_COMMIT_TAG =~ /^v\d+\.\d+\.\d+[-]?.*$/
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
All notable changes to this project will be documented in this file. See [conventional commits](https://www.conventionalcommits.org/) for commit guidelines.
|
|
3
|
+
|
|
4
|
+
- - -
|
|
5
|
+
## v0.3.7 - 2026-02-06
|
|
6
|
+
#### Bug Fixes
|
|
7
|
+
- change package name back to lowercase - (8a1fec8) - Katherine Smith
|
|
8
|
+
|
|
9
|
+
- - -
|
|
10
|
+
|
|
11
|
+
## v0.3.6 - 2026-02-06
|
|
12
|
+
#### Bug Fixes
|
|
13
|
+
- revert package name change - (45ad7d6) - Katherine Smith
|
|
14
|
+
|
|
15
|
+
- - -
|
|
16
|
+
|
|
17
|
+
## v0.3.5 - 2026-02-06
|
|
18
|
+
#### Bug Fixes
|
|
19
|
+
- change package name - (f005990) - Andrew Harrison
|
|
20
|
+
|
|
21
|
+
- - -
|
|
22
|
+
|
|
23
|
+
## v0.3.4 - 2026-02-06
|
|
24
|
+
#### Bug Fixes
|
|
25
|
+
- add doc caching loader - (904fde7) - Andrew Harrison
|
|
26
|
+
|
|
27
|
+
- - -
|
|
28
|
+
|
|
29
|
+
## v0.3.3 - 2025-07-24
|
|
30
|
+
#### Bug Fixes
|
|
31
|
+
- didlib test - (8a719b3) - Andrew Harrison
|
|
32
|
+
|
|
33
|
+
- - -
|
|
34
|
+
|
|
35
|
+
## v0.3.2 - 2025-07-24
|
|
36
|
+
#### Bug Fixes
|
|
37
|
+
- didlib test - (f4eaf30) - Andrew Harrison
|
|
38
|
+
|
|
39
|
+
- - -
|
|
40
|
+
|
|
41
|
+
## v0.3.1 - 2025-07-24
|
|
42
|
+
#### Bug Fixes
|
|
43
|
+
- didlib test - (edbcdf7) - Andrew Harrison
|
|
44
|
+
|
|
45
|
+
- - -
|
|
46
|
+
|
|
47
|
+
## v0.3.0 - 2025-03-13
|
|
48
|
+
#### Documentation
|
|
49
|
+
- **(README.md)** add Datadog CI and security scanning links - (21ca1fc) - Kieran David Evans
|
|
50
|
+
#### Features
|
|
51
|
+
- **(.gitlab-ci.yml)** add security scanning configuration - (c82a3b9) - Kieran David Evans
|
|
52
|
+
|
|
53
|
+
- - -
|
|
54
|
+
|
|
55
|
+
## v0.2.1 - 2025-03-13
|
|
56
|
+
#### Bug Fixes
|
|
57
|
+
- **(cog.toml)** correct changelog file path - (d01a462) - Kieran David Evans
|
|
58
|
+
|
|
59
|
+
- - -
|
|
60
|
+
|
|
61
|
+
## v0.1.18 - 2025-03-13
|
|
62
|
+
#### Bug Fixes
|
|
63
|
+
- **(package)** correct package name in package.json - (03818aa) - Kieran David Evans
|
|
64
|
+
|
|
65
|
+
- - -
|
|
66
|
+
|
|
67
|
+
## v0.1.17 - 2025-03-13
|
|
68
|
+
#### Bug Fixes
|
|
69
|
+
- **(npm)** update registry URLs in .npmrc and package.json - (c05b463) - Kieran David Evans
|
|
70
|
+
|
|
71
|
+
- - -
|
|
72
|
+
|
|
73
|
+
## v0.1.16 - 2025-03-12
|
|
74
|
+
#### Bug Fixes
|
|
75
|
+
- **(ci)** update npm authentication method in .gitlab-ci.yml - (57bf41b) - Kieran David Evans
|
|
76
|
+
|
|
77
|
+
- - -
|
|
78
|
+
|
|
79
|
+
## v0.1.15 - 2025-03-12
|
|
80
|
+
#### Bug Fixes
|
|
81
|
+
- **(ci)** update npm registry URLs in .gitlab-ci.yml, .npmrc, and package.json - (ddfbb6b) - Kieran David Evans
|
|
82
|
+
|
|
83
|
+
- - -
|
|
84
|
+
|
|
85
|
+
## v0.1.14 - 2025-03-12
|
|
86
|
+
#### Bug Fixes
|
|
87
|
+
- **(ci)** update npm authentication token configuration in .gitlab-ci.yml - (3724196) - Kieran David Evans
|
|
88
|
+
|
|
89
|
+
- - -
|
|
90
|
+
|
|
91
|
+
## v0.1.13 - 2025-03-12
|
|
92
|
+
#### Bug Fixes
|
|
93
|
+
- **(ci)** update npm configuration in .gitlab-ci.yml and package.json - (30024a4) - Kieran David Evans
|
|
94
|
+
|
|
95
|
+
- - -
|
|
96
|
+
|
|
97
|
+
## v0.1.12 - 2025-03-12
|
|
98
|
+
#### Bug Fixes
|
|
99
|
+
- **(ci)** update npm authentication token in .gitlab-ci.yml and package.json - (7338914) - Kieran David Evans
|
|
100
|
+
|
|
101
|
+
- - -
|
|
102
|
+
|
|
103
|
+
## v0.1.11 - 2025-03-12
|
|
104
|
+
#### Bug Fixes
|
|
105
|
+
- **(ci)** update npm registry URL in .gitlab-ci.yml and package.json - (3e89cab) - Kieran David Evans
|
|
106
|
+
|
|
107
|
+
- - -
|
|
108
|
+
|
|
109
|
+
## v0.1.10 - 2025-03-12
|
|
110
|
+
#### Bug Fixes
|
|
111
|
+
- **(ci)** update junit command in .gitlab-ci.yml - (6f1853a) - Kieran David Evans
|
|
112
|
+
|
|
113
|
+
- - -
|
|
114
|
+
|
|
115
|
+
## v0.1.9 - 2025-03-12
|
|
116
|
+
#### Bug Fixes
|
|
117
|
+
- **(ci)** update npm registry URL in .gitlab-ci.yml and package.json - (66f6359) - Kieran David Evans
|
|
118
|
+
|
|
119
|
+
- - -
|
|
120
|
+
|
|
121
|
+
## v0.1.8 - 2025-03-12
|
|
122
|
+
#### Bug Fixes
|
|
123
|
+
- **(ci)** update npm registry URL in .gitlab-ci.yml and package.json - (592efa7) - Kieran David Evans
|
|
124
|
+
|
|
125
|
+
- - -
|
|
126
|
+
|
|
127
|
+
## v0.1.7 - 2025-03-12
|
|
128
|
+
#### Bug Fixes
|
|
129
|
+
- **(ci)** update npm authentication method in .gitlab-ci.yml - (7c79bf3) - Kieran David Evans
|
|
130
|
+
#### Miscellaneous Chores
|
|
131
|
+
- remove .npm - (7c05a24) - Kieran David Evans
|
|
132
|
+
|
|
133
|
+
- - -
|
|
134
|
+
|
|
135
|
+
## v0.1.6 - 2025-03-12
|
|
136
|
+
#### Bug Fixes
|
|
137
|
+
- **(ci)** update npm cache paths in .gitlab-ci.yml and cog.toml - (7aa64d2) - Kieran David Evans
|
|
138
|
+
- **(ci)** update Datadog CI integration in .gitlab-ci.yml - (e6e07bb) - Kieran David Evans
|
|
139
|
+
- **(ci)** clean npm cache in .gitlab-ci.yml - (92764fd) - Kieran David Evans
|
|
140
|
+
- **(ci)** update npm cache path in .gitlab-ci.yml - (02bbbd9) - Kieran David Evans
|
|
141
|
+
- **(ci)** update junit command in .gitlab-ci.yml - (65ff71e) - Kieran David Evans
|
|
142
|
+
- **(ci)** update npm registry configuration in .gitlab-ci.yml and package.json - (9d5e44c) - Kieran David Evans
|
|
143
|
+
- **(cog.toml)** remove unnecessary options from release bump profiles - (1b73d67) - Kieran David Evans
|
|
144
|
+
- **(cog.toml)** standardize skip_untracked option in configuration - (f687f44) - Kieran David Evans
|
|
145
|
+
- **(cog.toml)** remove skip_untracked_files option from release bump profiles - (cb70226) - Kieran David Evans
|
|
146
|
+
|
|
147
|
+
- - -
|
|
148
|
+
|
|
149
|
+
Changelog generated by [cocogitto](https://github.com/cocogitto/cocogitto).
|
package/LICENCE
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 SIMBA Chain Inc. https://simbachain.com
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# simba-chain-vc
|
|
2
|
+
|
|
3
|
+
- [Datadog CI Details](https://app.datadoghq.com/ci/pipelines/ejdY7rwW6JZg/SIMBAChain%2Fsimba-enterprise-platform%2Fui%2Flibraries%2Fsimba-chain-vc/ci/main?query=ci_level%3Apipeline%20env%3Aci%20%40git.repository.id%3Agitlab.com%2FSIMBAChain%2Fsimba-enterprise-platform%2Fui%2Flibraries%2Fsimba-chain-vc%20%40ci.pipeline.name%3ASIMBAChain%2Fsimba-enterprise-platform%2Fui%2Flibraries%2Fsimba-chain-vc%20%40ci.provider.instance%3Agitlab-ci%20%40git.branch%3Amain%20%40ci.pipeline.fingerprint%3AejdY7rwW6JZg&fromUser=false&index=cipipeline&start=1741262860714&end=1741867664367&paused=false)
|
|
4
|
+
- [Datadog Security Scanning](https://app.datadoghq.com/ci/code-analysis/gitlab.com%2Fsimbachain%2Fsimba-enterprise-platform%2Fui%2Flibraries%2Fsimba-chain-vc/main/c82a3b9e90e43a3b4afb7148f6a2c746f7b989e0/code-vulnerabilities?query=%40git.repository.id%3Agitlab.com%2Fsimbachain%2Fsimba-enterprise-platform%2Fui%2Flibraries%2Fsimba-chain-vc%20%40git.branch%3Amain%20%40git.commit.sha%3Ac82a3b9e90e43a3b4afb7148f6a2c746f7b989e0%20%40static_analysis.result.category%3Asecurity%20%40static_analysis.result.item_type%3Astatic_analysis_violation%20-%40static_analysis.rule.is_testing%3Atrue)
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
This library provides utilities for working with DID Documents,
|
|
8
|
+
Verifiable Credentials (VCs) and Presentations (VPs).
|
|
9
|
+
|
|
10
|
+
Currently it is focussed on the minimal client side capabilities of:
|
|
11
|
+
|
|
12
|
+
1. Creating SIMBA VPs given VCs that have been provided by the server where a
|
|
13
|
+
local public key/ethereum address is mapped to the DID subject of that VC.
|
|
14
|
+
2. Finding the verification method (aka DID Document key reference) mapped to a public key or address.
|
|
15
|
+
3. Determining issuer and subject DIDs given a VC.
|
|
16
|
+
4. Creating a new private key from which public key and address can be derived.
|
|
17
|
+
5. Signing arbitrary data outside of the ethereum use case.
|
|
18
|
+
6. Creating JWK serializations of public and private keys.
|
|
19
|
+
7. Creating a multicodec serialization of public keys.
|
|
20
|
+
|
|
21
|
+
Note that (almost) all functionality is currently based on ERC 191 capabilities that are
|
|
22
|
+
used by the ERC191 crypto suite defined by SIMBA.
|
|
23
|
+
Therefore secp256k1 keys are assumed and when we say `public key` we usually mean `ethereum address`, as the address is the
|
|
24
|
+
public part of the key pair as far as blockchain and the SIMBA ERC191 suites is concerned.
|
|
25
|
+
|
|
26
|
+
The non-ethereum signing (#5 above) is used to sign DPoP headers. These signatures
|
|
27
|
+
are verified by the `public key` NOT an `ethereum address`.
|
|
28
|
+
For Secp256k1, this signing uses deterministic signing (no salt/nonce) and returns
|
|
29
|
+
a 64 byte signature over 32 bytes of data. It is assumed that any data that is not 32 bytes needs to be hashed and the
|
|
30
|
+
hashing alg is SHA256. An optional nonce can be added to this signing which is simply appended to the data before signing.
|
|
31
|
+
|
|
32
|
+
Multicodec public keys (not addresses) can be used as verification methods in DID documents.
|
package/cog.toml
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
from_latest_tag = true
|
|
2
|
+
ignore_merge_commits = true
|
|
3
|
+
skip_untracked = true
|
|
4
|
+
branch_whitelist = [
|
|
5
|
+
"main",
|
|
6
|
+
]
|
|
7
|
+
pre_bump_hooks = [
|
|
8
|
+
"yq --inplace '.version = \"{{version}}\"' --input-format json --output-format json package.json",
|
|
9
|
+
]
|
|
10
|
+
post_bump_hooks = [
|
|
11
|
+
"git push origin HEAD:main",
|
|
12
|
+
"git push origin {{version_tag}}",
|
|
13
|
+
]
|
|
14
|
+
tag_prefix = "v"
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
[bump_profiles.release]
|
|
19
|
+
pre_bump_hooks = [
|
|
20
|
+
"yq --inplace '.version = \"{{version}}\"' --input-format json --output-format json package.json",
|
|
21
|
+
]
|
|
22
|
+
post_bump_hooks = [
|
|
23
|
+
"git push origin HEAD:main",
|
|
24
|
+
"git push origin {{version_tag}}",
|
|
25
|
+
]
|
|
26
|
+
|
|
27
|
+
[changelog]
|
|
28
|
+
path = "CHANGELOG.md"
|
|
29
|
+
template = "default"
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"@version": 1.1,
|
|
7
|
+
"dataKey": {
|
|
8
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#dataKey",
|
|
9
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
10
|
+
},
|
|
11
|
+
"dataProof": {
|
|
12
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#dataProof",
|
|
13
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
14
|
+
},
|
|
15
|
+
"treeNode": {
|
|
16
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#treeNode",
|
|
17
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
18
|
+
},
|
|
19
|
+
"treeNodeValue": {
|
|
20
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#treeNodeValue",
|
|
21
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
22
|
+
},
|
|
23
|
+
"treeRoot": {
|
|
24
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#treeRoot",
|
|
25
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
26
|
+
},
|
|
27
|
+
"transaction": {
|
|
28
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#transaction",
|
|
29
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
30
|
+
},
|
|
31
|
+
"chain": {
|
|
32
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#chain",
|
|
33
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
34
|
+
},
|
|
35
|
+
"contract": {
|
|
36
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#contract",
|
|
37
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
38
|
+
},
|
|
39
|
+
"sensitivity": {
|
|
40
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#sensitivity",
|
|
41
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
42
|
+
},
|
|
43
|
+
"adl": {
|
|
44
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#adl",
|
|
45
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
46
|
+
},
|
|
47
|
+
"dci": {
|
|
48
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#dci",
|
|
49
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
50
|
+
},
|
|
51
|
+
"exid": {
|
|
52
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#exid",
|
|
53
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
54
|
+
},
|
|
55
|
+
"lot": {
|
|
56
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#lot",
|
|
57
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
58
|
+
},
|
|
59
|
+
"derivedProof": {
|
|
60
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#derivedProof",
|
|
61
|
+
"@type": "@id"
|
|
62
|
+
},
|
|
63
|
+
"ProvenanceCredential": {
|
|
64
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#ProvenanceCredential",
|
|
65
|
+
"@type": "@id"
|
|
66
|
+
},
|
|
67
|
+
"TrustedIssuerCredential": {
|
|
68
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#TrustedIssuerCredential",
|
|
69
|
+
"@type": "@id"
|
|
70
|
+
},
|
|
71
|
+
"TrustedIssuerSubjectCredential": {
|
|
72
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#TrustedIssuerSubjectCredential",
|
|
73
|
+
"@type": "@id"
|
|
74
|
+
},
|
|
75
|
+
"IdentityCredential": {
|
|
76
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#IdentityCredential",
|
|
77
|
+
"@type": "@id"
|
|
78
|
+
},
|
|
79
|
+
"BlankNode": {
|
|
80
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#BlankNode",
|
|
81
|
+
"@type": "@id"
|
|
82
|
+
},
|
|
83
|
+
"NamedGraph": {
|
|
84
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#NamedGraph",
|
|
85
|
+
"@type": "@id"
|
|
86
|
+
},
|
|
87
|
+
"augmentation": {
|
|
88
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#augmentation",
|
|
89
|
+
"@type": "@id"
|
|
90
|
+
},
|
|
91
|
+
"proofReference": {
|
|
92
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#proofReference",
|
|
93
|
+
"@type": "@id"
|
|
94
|
+
},
|
|
95
|
+
"trustedIssuer": {
|
|
96
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#trustedIssuer",
|
|
97
|
+
"@type": "@id"
|
|
98
|
+
},
|
|
99
|
+
"Issuer": {
|
|
100
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#Issuer",
|
|
101
|
+
"@context": {
|
|
102
|
+
"@protected": true,
|
|
103
|
+
"id": "@id",
|
|
104
|
+
"type": "@type",
|
|
105
|
+
"issuerDomain": {
|
|
106
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#issuerDomain",
|
|
107
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
108
|
+
},
|
|
109
|
+
"issuerClaims": {
|
|
110
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#issuerClaims",
|
|
111
|
+
"@type": "@id",
|
|
112
|
+
"@container": "@set"
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
"CredentialProof": {
|
|
117
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#CredentialProof",
|
|
118
|
+
"@context": {
|
|
119
|
+
"@protected": true,
|
|
120
|
+
"id": "@id",
|
|
121
|
+
"type": "@type",
|
|
122
|
+
"credential": {
|
|
123
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#credential",
|
|
124
|
+
"@type": "@id"
|
|
125
|
+
},
|
|
126
|
+
"credentialProofValue": {
|
|
127
|
+
"@id": "https://simbachain.github.io/context/proof/anchor#credentialProofValue",
|
|
128
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"@version": 1.1,
|
|
7
|
+
"ERC191Key2025": {
|
|
8
|
+
"@id": "https://simbachain.github.io/context/proof#ERC191Key2025",
|
|
9
|
+
"@context": {
|
|
10
|
+
"@protected": true,
|
|
11
|
+
"id": "@id",
|
|
12
|
+
"type": "@type",
|
|
13
|
+
"controller": {
|
|
14
|
+
"@id": "https://w3id.org/security#controller",
|
|
15
|
+
"@type": "@id"
|
|
16
|
+
},
|
|
17
|
+
"revoked": {
|
|
18
|
+
"@id": "https://w3id.org/security#revoked",
|
|
19
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
20
|
+
},
|
|
21
|
+
"account": {
|
|
22
|
+
"@id": "https://simbachain.github.io/context/proof#account",
|
|
23
|
+
"@type": "https://simbachain.github.io/context/proof#account"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"ERC191Signature2025": {
|
|
28
|
+
"@id": "https://simbachain.github.io/context/proof#ERC191Signature2025",
|
|
29
|
+
"@context": {
|
|
30
|
+
"@protected": true,
|
|
31
|
+
"id": "@id",
|
|
32
|
+
"type": "@type",
|
|
33
|
+
"challenge": "https://w3id.org/security#challenge",
|
|
34
|
+
"created": {
|
|
35
|
+
"@id": "http://purl.org/dc/terms/created",
|
|
36
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
37
|
+
},
|
|
38
|
+
"domain": "https://w3id.org/security#domain",
|
|
39
|
+
"expires": {
|
|
40
|
+
"@id": "https://w3id.org/security#expiration",
|
|
41
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
42
|
+
},
|
|
43
|
+
"nonce": "https://w3id.org/security#nonce",
|
|
44
|
+
"proofPurpose": {
|
|
45
|
+
"@id": "https://w3id.org/security#proofPurpose",
|
|
46
|
+
"@type": "@vocab",
|
|
47
|
+
"@context": {
|
|
48
|
+
"@protected": true,
|
|
49
|
+
"id": "@id",
|
|
50
|
+
"type": "@type",
|
|
51
|
+
"assertionMethod": {
|
|
52
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
53
|
+
"@type": "@id",
|
|
54
|
+
"@container": "@set"
|
|
55
|
+
},
|
|
56
|
+
"authentication": {
|
|
57
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
58
|
+
"@type": "@id",
|
|
59
|
+
"@container": "@set"
|
|
60
|
+
},
|
|
61
|
+
"capabilityInvocation": {
|
|
62
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
63
|
+
"@type": "@id",
|
|
64
|
+
"@container": "@set"
|
|
65
|
+
},
|
|
66
|
+
"capabilityDelegation": {
|
|
67
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
68
|
+
"@type": "@id",
|
|
69
|
+
"@container": "@set"
|
|
70
|
+
},
|
|
71
|
+
"keyAgreement": {
|
|
72
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
73
|
+
"@type": "@id",
|
|
74
|
+
"@container": "@set"
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"cryptosuite": {
|
|
79
|
+
"@id": "https://w3id.org/security#cryptosuite",
|
|
80
|
+
"@type": "https://w3id.org/security#cryptosuiteString"
|
|
81
|
+
},
|
|
82
|
+
"proofValue": {
|
|
83
|
+
"@id": "https://w3id.org/security#proofValue",
|
|
84
|
+
"@type": "http://www.w3.org/2001/XMLSchema#string"
|
|
85
|
+
},
|
|
86
|
+
"verificationMethod": {
|
|
87
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
88
|
+
"@type": "@id"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"id": "@id",
|
|
4
|
+
"type": "@type",
|
|
5
|
+
"@protected": true,
|
|
6
|
+
"@version": 1.1,
|
|
7
|
+
"proof": {
|
|
8
|
+
"@id": "https://w3id.org/security#proof",
|
|
9
|
+
"@type": "@id",
|
|
10
|
+
"@container": "@graph"
|
|
11
|
+
},
|
|
12
|
+
"ERC191Key2023": {
|
|
13
|
+
"@id": "https://w3id.org/security#ERC191Key2023",
|
|
14
|
+
"@context": {
|
|
15
|
+
"@protected": true,
|
|
16
|
+
"id": "@id",
|
|
17
|
+
"type": "@type",
|
|
18
|
+
"controller": {
|
|
19
|
+
"@id": "https://w3id.org/security#controller",
|
|
20
|
+
"@type": "@id"
|
|
21
|
+
},
|
|
22
|
+
"revoked": {
|
|
23
|
+
"@id": "https://w3id.org/security#revoked",
|
|
24
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
25
|
+
},
|
|
26
|
+
"blockchainAccountId": {
|
|
27
|
+
"@id": "https://w3id.org/security#blockchainAccountId",
|
|
28
|
+
"@type": "https://w3id.org/security#blockchainAccountId"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"ERC191Signature2023": {
|
|
33
|
+
"@id": "https://w3id.org/security#ERC191Signature2023",
|
|
34
|
+
"@context": {
|
|
35
|
+
"@protected": true,
|
|
36
|
+
"id": "@id",
|
|
37
|
+
"type": "@type",
|
|
38
|
+
"challenge": "https://w3id.org/security#challenge",
|
|
39
|
+
"created": {
|
|
40
|
+
"@id": "http://purl.org/dc/terms/created",
|
|
41
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
42
|
+
},
|
|
43
|
+
"domain": "https://w3id.org/security#domain",
|
|
44
|
+
"expires": {
|
|
45
|
+
"@id": "https://w3id.org/security#expiration",
|
|
46
|
+
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
|
47
|
+
},
|
|
48
|
+
"nonce": "https://w3id.org/security#nonce",
|
|
49
|
+
"proofPurpose": {
|
|
50
|
+
"@id": "https://w3id.org/security#proofPurpose",
|
|
51
|
+
"@type": "@vocab",
|
|
52
|
+
"@context": {
|
|
53
|
+
"@protected": true,
|
|
54
|
+
"id": "@id",
|
|
55
|
+
"type": "@type",
|
|
56
|
+
"assertionMethod": {
|
|
57
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
58
|
+
"@type": "@id",
|
|
59
|
+
"@container": "@set"
|
|
60
|
+
},
|
|
61
|
+
"authentication": {
|
|
62
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
63
|
+
"@type": "@id",
|
|
64
|
+
"@container": "@set"
|
|
65
|
+
},
|
|
66
|
+
"capabilityInvocation": {
|
|
67
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
68
|
+
"@type": "@id",
|
|
69
|
+
"@container": "@set"
|
|
70
|
+
},
|
|
71
|
+
"capabilityDelegation": {
|
|
72
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
73
|
+
"@type": "@id",
|
|
74
|
+
"@container": "@set"
|
|
75
|
+
},
|
|
76
|
+
"keyAgreement": {
|
|
77
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
78
|
+
"@type": "@id",
|
|
79
|
+
"@container": "@set"
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
"proofValue": {
|
|
84
|
+
"@id": "https://w3id.org/security#proofValue",
|
|
85
|
+
"@type": "https://w3id.org/security#blockchainAccountId"
|
|
86
|
+
},
|
|
87
|
+
"verificationMethod": {
|
|
88
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
89
|
+
"@type": "@id"
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"@context": {
|
|
3
|
+
"@protected": true,
|
|
4
|
+
"id": "@id",
|
|
5
|
+
"type": "@type",
|
|
6
|
+
|
|
7
|
+
"alsoKnownAs": {
|
|
8
|
+
"@id": "https://www.w3.org/ns/activitystreams#alsoKnownAs",
|
|
9
|
+
"@type": "@id"
|
|
10
|
+
},
|
|
11
|
+
"assertionMethod": {
|
|
12
|
+
"@id": "https://w3id.org/security#assertionMethod",
|
|
13
|
+
"@type": "@id",
|
|
14
|
+
"@container": "@set"
|
|
15
|
+
},
|
|
16
|
+
"authentication": {
|
|
17
|
+
"@id": "https://w3id.org/security#authenticationMethod",
|
|
18
|
+
"@type": "@id",
|
|
19
|
+
"@container": "@set"
|
|
20
|
+
},
|
|
21
|
+
"capabilityDelegation": {
|
|
22
|
+
"@id": "https://w3id.org/security#capabilityDelegationMethod",
|
|
23
|
+
"@type": "@id",
|
|
24
|
+
"@container": "@set"
|
|
25
|
+
},
|
|
26
|
+
"capabilityInvocation": {
|
|
27
|
+
"@id": "https://w3id.org/security#capabilityInvocationMethod",
|
|
28
|
+
"@type": "@id",
|
|
29
|
+
"@container": "@set"
|
|
30
|
+
},
|
|
31
|
+
"controller": {
|
|
32
|
+
"@id": "https://w3id.org/security#controller",
|
|
33
|
+
"@type": "@id"
|
|
34
|
+
},
|
|
35
|
+
"keyAgreement": {
|
|
36
|
+
"@id": "https://w3id.org/security#keyAgreementMethod",
|
|
37
|
+
"@type": "@id",
|
|
38
|
+
"@container": "@set"
|
|
39
|
+
},
|
|
40
|
+
"service": {
|
|
41
|
+
"@id": "https://www.w3.org/ns/did#service",
|
|
42
|
+
"@type": "@id",
|
|
43
|
+
"@context": {
|
|
44
|
+
"@protected": true,
|
|
45
|
+
"id": "@id",
|
|
46
|
+
"type": "@type",
|
|
47
|
+
"serviceEndpoint": {
|
|
48
|
+
"@id": "https://www.w3.org/ns/did#serviceEndpoint",
|
|
49
|
+
"@type": "@id"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"verificationMethod": {
|
|
54
|
+
"@id": "https://w3id.org/security#verificationMethod",
|
|
55
|
+
"@type": "@id"
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|