Skip to content

Commit

Permalink
fix(multiformats): downgrade to non-breaking multiformats (#123)
Browse files Browse the repository at this point in the history
* fix(multiformats): downgrade to non-breaking multiformats

* chore(release): 2.0.3

* chore(bump-did-jwt): bump did-jwt
  • Loading branch information
Cali93 authored Jul 12, 2023
1 parent 098d9a6 commit d057e0f
Show file tree
Hide file tree
Showing 5 changed files with 88 additions and 43 deletions.
65 changes: 62 additions & 3 deletions misc/did-jwt/package-lock.json

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

6 changes: 4 additions & 2 deletions misc/did-jwt/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@walletconnect/did-jwt",
"version": "2.0.2",
"version": "2.0.3",
"description": "Utilities for creating and handling DID-JWTs",
"keywords": [
"did-jwt",
Expand Down Expand Up @@ -35,11 +35,13 @@
"dist"
],
"devDependencies": {
"@types/node": "^20.4.1",
"tslib": "^2.6.0",
"typescript": "^4.9.5"
},
"dependencies": {
"@noble/ed25519": "1.7.3",
"bs58": "5.0.0",
"multiformats": "12.0.1"
"multiformats": "^9.9.0"
}
}
12 changes: 6 additions & 6 deletions misc/did-jwt/src/did-jwt.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
import { base58btc } from "multiformats/bases/base58";
import bs58 from "bs58";
import * as ed25519 from "@noble/ed25519";
import { JwtHeader, JwtPayload } from "./types";
import { concatUInt8Arrays, makeBase64UrlSafe, objectToHex } from "./helpers";
import bs58 from "bs58";
import { base58btc } from "multiformats/bases/base58";
import {
DAY_IN_MS,
DID_DELIMITER,
DID_METHOD_KEY,
DID_METHOD_PKH,
DID_PREFIX,
DAY_IN_MS,
JWT_DELIMITER,
MULTICODEC_ED25519_HEADER,
DID_METHOD_KEY,
MULTICODEC_X25519_HEADER,
} from "./constants";
import { concatUInt8Arrays, makeBase64UrlSafe, objectToHex } from "./helpers";
import { JwtHeader, JwtPayload } from "./types";

export const composeDidPkh = (accountId: string) => {
return `${DID_PREFIX}${DID_DELIMITER}${DID_METHOD_PKH}${DID_DELIMITER}${accountId}`;
Expand Down
46 changes: 15 additions & 31 deletions misc/identity-keys/package-lock.json

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

2 changes: 1 addition & 1 deletion misc/identity-keys/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
"@noble/ed25519": "^1.7.1",
"@walletconnect/cacao": "1.0.2",
"@walletconnect/core": "^2.7.3",
"@walletconnect/did-jwt": "2.0.2",
"@walletconnect/did-jwt": "2.0.3",
"@walletconnect/types": "^2.7.3",
"@walletconnect/utils": "^2.7.3",
"axios": "^1.3.5"
Expand Down

0 comments on commit d057e0f

Please sign in to comment.