@arcblock/did 1.18.121 → 1.18.123
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/README.md +3 -3
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -20,7 +20,7 @@ const { types } = Mcrypto;
|
|
|
20
20
|
const keyPair = Mcrypto.Signer.Ed25519.genKeyPair();
|
|
21
21
|
|
|
22
22
|
// Gen DID from secretKey
|
|
23
|
-
const address = fromSecretKey(
|
|
23
|
+
const address = fromSecretKey(keyPair.secretKey, {
|
|
24
24
|
role: types.RoleType.ROLE_APPLICATION,
|
|
25
25
|
pk: types.KeyType.ED25519,
|
|
26
26
|
hash: types.HashType.SHA3,
|
|
@@ -28,7 +28,7 @@ const address = fromSecretKey(keyPir.secretKey, {
|
|
|
28
28
|
console.log(`abt:did:${address}`);
|
|
29
29
|
|
|
30
30
|
// Gen DID from publicKey
|
|
31
|
-
const address = fromPublicKey(
|
|
31
|
+
const address = fromPublicKey(keyPair.publicKey, {
|
|
32
32
|
role: types.RoleType.ROLE_APPLICATION,
|
|
33
33
|
pk: types.KeyType.ED25519,
|
|
34
34
|
hash: types.HashType.SHA3,
|
|
@@ -39,7 +39,7 @@ console.log(`abt:did:${address}`);
|
|
|
39
39
|
const seed =
|
|
40
40
|
'0xa0c42a9c3ac6abf2ba6a9946ae83af18f51bf1c9fa7dacc4c92513cc4dd015834341c775dcd4c0fac73547c5662d81a9e9361a0aac604a73a321bd9103bce8af';
|
|
41
41
|
const appDID = 'zNKtCNqYWLYWYW3gWRA1vnRykfCBZYHZvzKr';
|
|
42
|
-
const userDID = fromAppDID(appDID,
|
|
42
|
+
const userDID = fromAppDID(appDID, keyPair.publicKey, {
|
|
43
43
|
role: types.RoleType.ROLE_APPLICATION,
|
|
44
44
|
pk: types.KeyType.ED25519,
|
|
45
45
|
hash: types.HashType.SHA3,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arcblock/did",
|
|
3
|
-
"version": "1.18.
|
|
3
|
+
"version": "1.18.123",
|
|
4
4
|
"description": "Javascript lib to work with ArcBlock DID",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"arcblock",
|
|
@@ -54,11 +54,11 @@
|
|
|
54
54
|
"url": "https://github.com/ArcBlock/blockchain/issues"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@ocap/mcrypto": "1.18.
|
|
58
|
-
"@ocap/util": "1.18.
|
|
57
|
+
"@ocap/mcrypto": "1.18.123",
|
|
58
|
+
"@ocap/util": "1.18.123",
|
|
59
59
|
"bn.js": "^5.2.1",
|
|
60
60
|
"debug": "^4.3.4",
|
|
61
61
|
"lodash": "^4.17.21"
|
|
62
62
|
},
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "fa235d164885434399fafe96860d8e5c137bce3b"
|
|
64
64
|
}
|