Skip to content

Commit

Permalink
upgrade zkid-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
zzcwoshizz committed Feb 27, 2023
1 parent f676624 commit 0954b04
Show file tree
Hide file tree
Showing 6 changed files with 61 additions and 54 deletions.
7 changes: 7 additions & 0 deletions .changeset/sixty-eggs-raise.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
'@zcloak/credential-core': patch
'@zcloak/ui-did-keyring': patch
'@zcloak/did-keyring': patch
---

upgrade zkid-sdk
4 changes: 2 additions & 2 deletions packages/credential-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
"@kiltprotocol/core": "^0.28.2",
"@kiltprotocol/types": "^0.28.2",
"@polkadot/util": "^10.2.1",
"@zcloak/crypto": "^1.0.0",
"@zcloak/vc": "^1.0.0"
"@zcloak/crypto": "^1.1.0",
"@zcloak/vc": "^1.1.0"
},
"devDependencies": {
"@zcloak/wasm": "^1.0.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/did-keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
"@kiltprotocol/types": "^0.28.2",
"@polkadot/keyring": "^10.1.12",
"@polkadot/util": "^10.2.1",
"@zcloak/crypto": "^1.0.0",
"@zcloak/did": "^1.0.0",
"@zcloak/did-resolver": "^1.0.0",
"@zcloak/keyring": "^1.0.0",
"@zcloak/crypto": "^1.1.0",
"@zcloak/did": "^1.1.0",
"@zcloak/did-resolver": "^1.1.0",
"@zcloak/keyring": "^1.0.1",
"eventemitter3": "^5.0.0"
}
}
4 changes: 2 additions & 2 deletions packages/did-keyring/src/zk/ZkDid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type { KeyringPair } from '@zcloak/keyring/types';
import { assert } from '@polkadot/util';
import { HexString } from '@polkadot/util/types';

import { Did, helpers, keys } from '@zcloak/did';
import { Did, keys } from '@zcloak/did';
import { isDidUrl } from '@zcloak/did/utils';
import { DidUrl } from '@zcloak/did-resolver/types';
import { Keyring } from '@zcloak/keyring';
Expand All @@ -24,7 +24,7 @@ export class ZkDid extends DidBase<DidKeys$Json> {
}

public override addDidFromMnemonic(mnemonic: string, password: string): DidUrl {
const did = helpers.createEcdsaFromMnemonic(mnemonic, this.keyring);
const did = keys.fromMnemonic(this.keyring, mnemonic);

this.addDid(did, password);

Expand Down
6 changes: 3 additions & 3 deletions packages/ui-did-keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"dependencies": {
"@polkadot/keyring": "^10.1.12",
"@polkadot/util": "^10.2.1",
"@zcloak/did": "^1.0.0",
"@zcloak/did": "^1.1.0",
"@zcloak/did-keyring": "workspace:^",
"@zcloak/did-resolver": "^1.0.0",
"@zcloak/keyring": "^1.0.0",
"@zcloak/did-resolver": "^1.1.0",
"@zcloak/keyring": "^1.0.1",
"@zcloak/ui-store": "workspace:^"
},
"devDependencies": {
Expand Down
86 changes: 43 additions & 43 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4516,16 +4516,16 @@ __metadata:
"@kiltprotocol/core": ^0.28.2
"@kiltprotocol/types": ^0.28.2
"@polkadot/util": ^10.2.1
"@zcloak/crypto": ^1.0.0
"@zcloak/vc": ^1.0.0
"@zcloak/crypto": ^1.1.0
"@zcloak/vc": ^1.1.0
"@zcloak/wasm": ^1.0.0
"@zcloak/wasm-asm": ^1.0.0
languageName: unknown
linkType: soft

"@zcloak/crypto@npm:1.0.0, @zcloak/crypto@npm:^1.0.0":
version: 1.0.0
resolution: "@zcloak/crypto@npm:1.0.0"
"@zcloak/crypto@npm:1.1.0, @zcloak/crypto@npm:^1.1.0":
version: 1.1.0
resolution: "@zcloak/crypto@npm:1.1.0"
dependencies:
"@noble/hashes": ^1.2.0
"@noble/secp256k1": ^1.7.1
Expand All @@ -4537,20 +4537,20 @@ __metadata:
ed2curve: ^0.3.0
ethereumjs-abi: ^0.6.8
tweetnacl: ^1.0.3
checksum: 8b49025c4e11e247d0e45fef5a90a58808d70f6551fb29cc1772a4c4963fb7c09db21dea5d78289c54104fa492e2057db70fd018491747913a0cb1bf9f2b2451
checksum: 2b42b2146171de532cc3e4d67f14f05d6a92759a6bb8ce3a3c66445b96cf90e340c692f2c8d8074e1eb6f8923bd7934cb8bbdb1ef6d29be7ab5cc908ec7c0ce9
languageName: node
linkType: hard

"@zcloak/ctype@npm:1.0.0":
version: 1.0.0
resolution: "@zcloak/ctype@npm:1.0.0"
"@zcloak/ctype@npm:1.1.0":
version: 1.1.0
resolution: "@zcloak/ctype@npm:1.1.0"
dependencies:
"@polkadot/util": ^10.2.1
"@zcloak/crypto": 1.0.0
"@zcloak/did": 1.0.0
"@zcloak/did-resolver": 1.0.0
"@zcloak/crypto": 1.1.0
"@zcloak/did": 1.1.0
"@zcloak/did-resolver": 1.1.0
jsonschema: ^1.4.1
checksum: b54bad4fedafe841cb92e4f90f28636872609d54f85eda75b72d27f1fcecc66525776477ba72d8e1f5a909544ce66b30db9308056a6f0def7aa8f876060c0652
checksum: cc676e3b80c918831e08eddbcf1a901194b4612b2f861b216595fb91603918ee3278400cf58aeba507fd5403fa7b38ba5f7ba04191c9fb07ff912e5f5dd165aa
languageName: node
linkType: hard

Expand Down Expand Up @@ -4661,32 +4661,32 @@ __metadata:
"@kiltprotocol/types": ^0.28.2
"@polkadot/keyring": ^10.1.12
"@polkadot/util": ^10.2.1
"@zcloak/crypto": ^1.0.0
"@zcloak/did": ^1.0.0
"@zcloak/did-resolver": ^1.0.0
"@zcloak/keyring": ^1.0.0
"@zcloak/crypto": ^1.1.0
"@zcloak/did": ^1.1.0
"@zcloak/did-resolver": ^1.1.0
"@zcloak/keyring": ^1.0.1
eventemitter3: ^5.0.0
languageName: unknown
linkType: soft

"@zcloak/did-resolver@npm:1.0.0, @zcloak/did-resolver@npm:^1.0.0":
version: 1.0.0
resolution: "@zcloak/did-resolver@npm:1.0.0"
"@zcloak/did-resolver@npm:1.1.0, @zcloak/did-resolver@npm:^1.1.0":
version: 1.1.0
resolution: "@zcloak/did-resolver@npm:1.1.0"
dependencies:
cross-fetch: ^3.1.5
checksum: 4ae5a76c9d6d3fa7c4417abd075270ed6b84ca24ad1fd5535a8f2bc5d94e416c05bdaf04581dd313c864ec45b0bc782f07acf043a83a9179328146bb110ab24a
checksum: aaddc4f86938b64583782352f09ac162f9b54546b42938a6567abf4dafe1c479869bbabe9509643d35bf1343b92d8ea3bde9bb053e2399f496a20d4f81ddc7ec
languageName: node
linkType: hard

"@zcloak/did@npm:1.0.0, @zcloak/did@npm:^1.0.0":
version: 1.0.0
resolution: "@zcloak/did@npm:1.0.0"
"@zcloak/did@npm:1.1.0, @zcloak/did@npm:^1.1.0":
version: 1.1.0
resolution: "@zcloak/did@npm:1.1.0"
dependencies:
"@polkadot/util": ^10.3.1
"@zcloak/crypto": 1.0.0
"@zcloak/did-resolver": 1.0.0
"@zcloak/keyring": 1.0.0
checksum: 73481b1df8b6cfeb7b545959d40e077ce872349f379c56c19f69a07fbb1c99d2702c970b6078fc5389d2da1ba925d01f0fdc20e628f2e5d0eb23866e2dd31912
"@zcloak/crypto": 1.1.0
"@zcloak/did-resolver": 1.1.0
"@zcloak/keyring": 1.0.1
checksum: 30e8a7705fd0dbb26b764b33bcad56d6c5e1e8bc1ec65dca34fffa139e5a0f9e34816c9dacd4454583e7d8aa40119df0c919c05428ae2340c942dc3b73f54203
languageName: node
linkType: hard

Expand All @@ -4699,13 +4699,13 @@ __metadata:
languageName: unknown
linkType: soft

"@zcloak/keyring@npm:1.0.0, @zcloak/keyring@npm:^1.0.0":
version: 1.0.0
resolution: "@zcloak/keyring@npm:1.0.0"
"@zcloak/keyring@npm:1.0.1, @zcloak/keyring@npm:^1.0.1":
version: 1.0.1
resolution: "@zcloak/keyring@npm:1.0.1"
dependencies:
"@polkadot/util": ^10.3.1
"@zcloak/crypto": 1.0.0
checksum: 45dc1872c9e4bd1979cdbc5f1211e49e536d63805f9303ff67d61b3805ffff71929c638301304d2bd6bb06f3f8789bf3584f3e7408c726ac9eecb265e545c079
"@zcloak/crypto": 1.1.0
checksum: d79676059ce036dff0c257aa47c73de617120258a517b0cb756b00db0a9bd74d9cc930079feed775fa4c08036ac6a803d93d89a2afcbb06cd00931e5c9cbeeb9
languageName: node
linkType: hard

Expand Down Expand Up @@ -4753,10 +4753,10 @@ __metadata:
"@kiltprotocol/types": ^0.28.2
"@polkadot/keyring": ^10.1.12
"@polkadot/util": ^10.2.1
"@zcloak/did": ^1.0.0
"@zcloak/did": ^1.1.0
"@zcloak/did-keyring": "workspace:^"
"@zcloak/did-resolver": ^1.0.0
"@zcloak/keyring": ^1.0.0
"@zcloak/did-resolver": ^1.1.0
"@zcloak/keyring": ^1.0.1
"@zcloak/ui-store": "workspace:^"
languageName: unknown
linkType: soft
Expand All @@ -4770,16 +4770,16 @@ __metadata:
languageName: unknown
linkType: soft

"@zcloak/vc@npm:^1.0.0":
version: 1.0.0
resolution: "@zcloak/vc@npm:1.0.0"
"@zcloak/vc@npm:^1.1.0":
version: 1.1.0
resolution: "@zcloak/vc@npm:1.1.0"
dependencies:
"@polkadot/util": ^10.3.1
"@zcloak/crypto": 1.0.0
"@zcloak/ctype": 1.0.0
"@zcloak/did": 1.0.0
"@zcloak/crypto": 1.1.0
"@zcloak/ctype": 1.1.0
"@zcloak/did": 1.1.0
merkletreejs: ^0.3.9
checksum: ccc3e29ef87b196126d16d57783dc6fcb71e8d148b3b4487bda54edcab41adbf1e5d55fa9d86168e52a437532261f604ed54ab05d2bb5de56779a05d80c58db0
checksum: 0deaa3d910790f0d591d7a499ce951974a7260711b24f44d6c63c814736fd297fe9a4e2ae30ae7d20c051da604ec097f85467a2f62430eadb385ad21dac32e54
languageName: node
linkType: hard

Expand Down

0 comments on commit 0954b04

Please sign in to comment.