Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
nklomp committed Apr 17, 2023
1 parent e54bb77 commit 8319218
Show file tree
Hide file tree
Showing 64 changed files with 2,313 additions and 158 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -63,5 +63,5 @@ test/*.js
/packages/vc-api-issuer/plugin.schema.json
/packages/vc-api-verifier/plugin.schema.json
/packages/connection-manager/plugin.schema.json
/packages/bls-key-manager/plugin.schema.json
/packages/key-manager/plugin.schema.json
/packages/ms-request-api/plugin.schema.json
12 changes: 12 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
plugins: ['@babel/plugin-transform-modules-commonjs', [
'@babel/plugin-transform-runtime',
{
regenerator: true,
},
]],
presets: [
['@babel/preset-env', { targets: { node: 'current' } }],
'@babel/preset-typescript'
]
}
6 changes: 5 additions & 1 deletion jest.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@
"tsconfig": "./packages/tsconfig-base.json"
}]
},
"transformIgnorePatterns": [
".*node_modules/(?!(nist-weierstrauss|multiformatsgggggg)/)"
],
"testMatch": [
"**/__tests__/**/*.test.*"
"**/__tests__/**/*.test.*",
"!**/__tests__/**/*.test.*.snap"
],
"testEnvironment": "node",
"automock": false,
Expand Down
20 changes: 13 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@sphereon/veramo-BBS-workspace",
"name": "@sphereon/ssi-sdk-ext.workspace",
"private": true,
"version": "0.10.0",
"description": "Sphereon Veramo BBS+ signature support (Workspace)",
"description": "Sphereon Crypto Extensions (BBS+/EBSI) signature support (Workspace)",
"repository": "[email protected]:Sphereon-Opensource/veramo-BBS.git",
"author": "Sphereon <[email protected]>",
"license": "Apache-2.0",
Expand All @@ -24,7 +24,7 @@
},
"workspaces": {
"nohoist": [
"**disabled-replace-by-package-names**"
"multiformats"
],
"packages": [
"./packages/*"
Expand All @@ -43,12 +43,18 @@
]
},
"devDependencies": {
"@babel/cli": "^7.21.0",
"@babel/core": "^7.21.4",
"@babel/plugin-transform-runtime": "^7.21.4",
"@babel/preset-env": "^7.21.4",
"@babel/preset-typescript": "^7.21.4",
"@babel/runtime": "^7.21.0",
"@microsoft/api-documenter": "^7.21.5",
"@microsoft/api-extractor": "^7.34.4",
"@microsoft/api-extractor-model": "^7.26.4",
"@types/debug": "^4.1.7",
"@types/jest": "^29.4.0",
"@types/node": "^18.15.0",
"@types/debug": "^4.1.7",
"@typescript-eslint/eslint-plugin": "^5.54.1",
"@typescript-eslint/parser": "^5.54.1",
"codecov": "^3.8.3",
Expand All @@ -63,15 +69,15 @@
"lerna-changelog": "^2.2.0",
"oas-resolver": "^2.5.6",
"openapi-types": "^12.1.0",
"patch-package": "^6.5.1",
"prettier": "^2.8.4",
"pretty-quick": "^3.1.3",
"rimraf": "^4.4.0",
"semantic-release": "^19.0.5",
"ts-jest": "^29.0.5",
"ts-json-schema-generator": "^1.2.0",
"ts-node": "^10.9.1",
"typescript": "4.9.5",
"patch-package": "^6.5.1"
"typescript": "4.9.5"
},
"resolutions": {
"@veramo/core": "4.2.0",
Expand All @@ -96,7 +102,7 @@
"@veramo/selective-disclosure": "4.2.0",
"@veramo/url-handler": "4.2.0",
"**/@digitalcredentials/ed25519-verification-key-2020": "3.2.2",
"**/jsonld" : "npm:@digitalcredentials/jsonld@^5.2.1",
"**/jsonld": "npm:@digitalcredentials/jsonld@^5.2.1",
"**/isomorphic-webcrypto": "link:./node_modules/@sphereon/isomorphic-webcrypto"
},
"engines": {
Expand Down
47 changes: 0 additions & 47 deletions packages/bls-did-provider-key/src/BlsKeyDidResolver.ts

This file was deleted.

32 changes: 0 additions & 32 deletions packages/bls-did-resolver-key/package.json

This file was deleted.

File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@sphereon/bls-did-provider-key",
"name": "@sphereon/ssi-sdk-ext-did-provider-key",
"description": "Sphereon plugin that can enable creation and control of did:key identifiers.",
"version": "0.10.1",
"main": "dist/index.js",
Expand All @@ -10,9 +10,7 @@
},
"dependencies": {
"@transmute/did-key-bls12381": "^0.3.0-unstable.10",
"@transmute/did-key-ed25519": "^0.3.0-unstable.10",
"@transmute/did-key-secp256k1": "^0.3.0-unstable.10",
"@transmute/did-key-x25519": "^0.3.0-unstable.10",
"@sphereon/did-resolver-key": "^0.10.1",
"@veramo/core": "4.2.0",
"@veramo/did-manager": "4.2.0",
"debug": "^4.3.4",
Expand All @@ -39,5 +37,17 @@
"author": "Sphereon <[email protected]>",
"contributors": [],
"license": "Apache-2.0",
"keywords": []
"keywords": [
"Sphereon",
"did:key provider",
"DID",
"KEY",
"EBSI",
"BLS",
"BBS+",
"ed25519",
"secp256r1",
"secp256r1",
"RSA"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import Multibase from 'multibase'
import Multicodec from 'multicodec'
import Debug from 'debug'

const debug = Debug('bls-did-provider-key')
const debug = Debug('did-provider-key')

type IContext = IAgentContext<IKeyManager>

Expand Down
16 changes: 16 additions & 0 deletions packages/did-provider-key/src/KeyDidResolver.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { DIDResolutionOptions, DIDResolutionResult, DIDResolver, ParsedDID, Resolvable, Resolver } from 'did-resolver'
import { getResolver } from '@sphereon/did-resolver-key'

const resolveDidKey: DIDResolver = async (
didUrl: string,
_parsed: ParsedDID,
_resolver: Resolvable,
options: DIDResolutionOptions
): Promise<DIDResolutionResult> => {
const resolver = new Resolver({ ...getResolver() })
return resolver.resolve(didUrl, options)
}

export function getDidKeyResolver() {
return { key: resolveDidKey }
}
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { BlsKeyDidProvider } from './BlsKeyDidProvider'
export { getDidKeyResolver } from './BlsKeyDidResolver'
export { getDidKeyResolver } from './KeyDidResolver'
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<h1 align="center">
<br>
<a href="https://www.sphereon.com"><img src="https://sphereon.com/content/themes/sphereon/assets/img/logo.svg" alt="Sphereon" width="400"></a>
<br>BLS DID RESOLVER KEY
<br>Extended DID Key resolver (BLS/EBSI)
<br>
</h1>

This plugin combines multiple DID key resolvers and exposes a unified API to resolve DIDs.
It adds Bls keys support to key-did-resolver package which is missing from the original Ceramic Networks key-did-resolver plugin.
It adds BBS+/Bls and EBSI key support to key-did-resolver package which is missing from the original Ceramic Networks key-did-resolver plugin.
51 changes: 51 additions & 0 deletions packages/did-resolver-key/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"name": "@sphereon/did-resolver-key",
"description": "Sphereon did:key resolver with BBS+/BLS and EBSI support.",
"version": "0.10.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc"
},
"dependencies": {
"@stablelib/ed25519": "^1.0.3",
"multiformats": "^9.9.0",
"uint8arrays": "^3.1.1",
"lodash.isplainobject": "^4.0.6",
"web-encoding": "^1.1.5",
"varint": "^6.0.0",
"nist-weierstrauss": "^1.6.1",
"bigint-mod-arith": "^3.2.1",
"enhanced-resolve": "^5.12.0"
},
"devDependencies": {
"@types/varint": "^6.0.1",
"@types/lodash.isplainobject": "^4.0.7"
},
"files": [
"dist/**/*",
"src/**/*",
"README.md",
"LICENSE"
],
"publishConfig": {
"access": "public"
},
"repository": "[email protected]:Sphereon-Opensource/SSI-SDK-crypto-extensions.git",
"author": "Sphereon <[email protected]>",
"contributors": [],
"license": "Apache-2.0",
"keywords": [
"Sphereon",
"did:key resolver",
"DID",
"KEY",
"EBSI",
"BLS",
"BBS+",
"ed25519",
"secp256r1",
"secp256r1",
"RSA"
]
}
Loading

0 comments on commit 8319218

Please sign in to comment.