Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add did:ebsi provider Veramo plugin #161

Merged
merged 42 commits into from
Apr 7, 2023
Merged
Show file tree
Hide file tree
Changes from 31 commits
Commits
Show all changes
42 commits
Select commit Hold shift + click to select a range
a6da3c9
chore: remove old website (#136)
martines3000 Mar 20, 2023
6283533
chore: update lock file
martines3000 Mar 20, 2023
945a5e6
feat: update packages to esm (#135)
martines3000 Mar 20, 2023
2b114ee
feat: new dapp (#107)
andyv09 Mar 20, 2023
88a2f1c
chore: change basePath to ssi-snap
martines3000 Mar 20, 2023
175acaf
fix: fixes dapp build issues
martines3000 Mar 20, 2023
f2607dd
fix: disable next image optimization
martines3000 Mar 21, 2023
a3a9144
fix: fixes dapp Dockerfile
martines3000 Mar 21, 2023
6095f96
feat: add support for did:ebsi method for legal entitites
pseudobun Mar 25, 2023
2f97227
chore: update ebsi lib versions
pseudobun Mar 25, 2023
2adafad
fix: fixes snap url in new dapp (#142)
martines3000 Mar 27, 2023
fab0b4d
feat: add createVC RPC method (#141)
andyv09 Mar 28, 2023
6898a70
chore: update dev deps (#144)
martines3000 Mar 28, 2023
669a0e7
chore: refactor code and files for did:ebsi legal entities
pseudobun Mar 28, 2023
a8737ab
fix: error handling
pseudobun Mar 28, 2023
28d6ddf
feat: add support for did:key ebsi natural persons
pseudobun Mar 28, 2023
1b9220d
feat: did:key resolution for ebsi natural persons
pseudobun Mar 29, 2023
78fa4e7
feat: did:ebsi onboarding via snap
pseudobun Mar 29, 2023
1df04f6
chore: restructure did:ebsi plugin folder
pseudobun Mar 29, 2023
5d643f7
chore: bump @cef-ebsi/verifiable-presentation version
pseudobun Apr 5, 2023
397e2f3
chore: format index.html
pseudobun Apr 5, 2023
ad3aa92
Merge branch 'develop' into feat/did-ebsi-support
pseudobun Apr 5, 2023
d4292d4
chore: refactor key import when creating did:ebsi identifier
pseudobun Apr 5, 2023
12ab90f
fix: error handling
pseudobun Apr 5, 2023
4d96c9a
chore: remove unnecessary eslint rules
pseudobun Apr 5, 2023
76c0897
feat: update request params validation for switchDidMethod RPC
pseudobun Apr 5, 2023
8fa9f3f
chore: remove unnecesary comments
pseudobun Apr 5, 2023
9ae4616
Merge branch 'develop' into feat/did-ebsi-support
martines3000 Apr 7, 2023
9377e70
fix: error handling in ebsiUtils
pseudobun Apr 7, 2023
179e33a
feat: website internationalization (#153)
andyv09 Apr 7, 2023
5d30479
Merge branch 'develop' into feat/did-ebsi-support
martines3000 Apr 7, 2023
9cde645
chore: remove console.log
martines3000 Apr 7, 2023
383c531
chore: remove undefined
martines3000 Apr 7, 2023
9e16ef7
chore: throw error instead of return empty string
martines3000 Apr 7, 2023
5046233
chore: remove unused vars disable
martines3000 Apr 7, 2023
99f2a6d
chore: change any to unknown
martines3000 Apr 7, 2023
4a06c59
chore: options?.bearer
martines3000 Apr 7, 2023
148d6fe
chore: remove ebsi fields from index.html
pseudobun Apr 7, 2023
f0150b8
fix: unit test
pseudobun Apr 7, 2023
6731c1f
chore: refactor ebsi plugin code, start function params transition
pseudobun Apr 7, 2023
4bf6110
chore: small fix
martines3000 Apr 7, 2023
0aa049f
chore: remove some things
martines3000 Apr 7, 2023
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
1,034 changes: 514 additions & 520 deletions packages/snap/index.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions packages/snap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,10 @@
"@blockchain-lab-um/ssi-snap-types": "*",
"@blockchain-lab-um/utils": "*",
"@blockchain-lab-um/veramo-vc-manager": "*",
"@cef-ebsi/ebsi-did-resolver": "^3.0.0",
"@cef-ebsi/key-did-resolver": "^1.0.0",
"@cef-ebsi/siop-auth": "^3.0.0",
"@cef-ebsi/verifiable-presentation": "^5.0.5",
"@ceramicnetwork/http-client": "2.20.0",
"@ceramicnetwork/streamid": "2.14.0",
"@didtools/pkh-ethereum": "^0.0.2",
Expand Down Expand Up @@ -84,10 +88,12 @@
"did-resolver": "4.0.1",
"did-session": "1.0.0",
"dids": "^3.4.0",
"elliptic": "^6.5.4",
"eth-sig-util": "3.0.1",
"ethers": "5.7.2",
"ethr-did": "2.3.6",
"ethr-did-resolver": "8.0.0",
"jose": "^4.13.1",
"js-sha256": "^0.9.0",
"json-loader": "^0.5.7",
"jsonpath": "^1.1.1",
Expand All @@ -111,6 +117,7 @@
"@metamask/snaps-webpack-plugin": "0.28.0",
"@swc/core": "^1.3.41",
"@swc/jest": "^0.2.24",
"@types/elliptic": "^6.4.14",
"@types/jest": "^29.5.0",
"@types/jsonpath": "^0.2.0",
"@types/lodash.clonedeep": "^4.5.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/snap/snap.manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"url": "https://github.com/blockchain-lab-um/ssi-snap.git"
},
"source": {
"shasum": "qyCwn7UrXV23XgK1QfNXZNTqHphKIY8yEcvMUVYJMD4=",
"shasum": "1FKhZhFfxc2S37Pj1TK8XQ2IeheY8H/UKakLM4AZouo=",
"location": {
"npm": {
"filePath": "dist/snap.js",
Expand Down
2 changes: 2 additions & 0 deletions packages/snap/src/constants/multicodec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ export type CodecName =
| 'secp256k1-priv'
| 'secp256k1-pub'
| 'ed25519-priv'
| 'jwk_jcs-pub'
| 'ed25519-pub';

export const MULTICODECS: Record<CodecName, Uint8Array> = {
'secp256k1-priv': new Uint8Array([129, 38]),
'secp256k1-pub': new Uint8Array([231, 1]),
'ed25519-priv': new Uint8Array([128, 38]),
'jwk_jcs-pub': new Uint8Array([235, 81]),
'ed25519-pub': new Uint8Array([237, 1]),
};
19 changes: 19 additions & 0 deletions packages/snap/src/did/ebsi/constants.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
const BASE_URL = 'https://api-pilot.ebsi.eu';
const DID_REGISTRY = `${BASE_URL}/did-registry/v3/identifiers`;
const TAR_REG = `${BASE_URL}/trusted-apps-registry/v3/apps`;

const AUTH_RESPONSE = '/users-onboarding/v2/authentication-responses';
const SIOP_SESSIONS = '/authorisation/v2/siop-sessions';
const DID_REGISTRY_RPC = '/did-registry/v3/jsonrpc';

export const EbsiConfig = {
BASE_URL,
DID_REGISTRY,
TAR_REG,
};

export const EbsiEndpoints = {
AUTH_RESPONSE,
SIOP_SESSIONS,
DID_REGISTRY_RPC,
};
Loading