hyper-multisig-cli 1.1.3 → 1.2.0

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.
Files changed (3) hide show
  1. package/README.md +5 -3
  2. package/bin.js +4 -2
  3. package/package.json +3 -4
package/README.md CHANGED
@@ -42,7 +42,7 @@ Take note of your public key.
42
42
 
43
43
  We just create a dummy source core for this example:
44
44
 
45
- ```
45
+ ```js
46
46
  import Corestore from 'corestore'
47
47
  import Hyperswarm from 'hyperswarm'
48
48
 
@@ -55,7 +55,9 @@ await core.ready()
55
55
  for (let i = core.length; i < desiredLength; i++) await core.append(`Block-${i}`)
56
56
 
57
57
  const swarm = new Hyperswarm()
58
- swarm.on('connection', (conn) => { store.replicate(conn) })
58
+ swarm.on('connection', (conn) => {
59
+ store.replicate(conn)
60
+ })
59
61
  swarm.join(core.discoveryKey)
60
62
  console.log(`Swarming key ${core.id} (length ${core.length})`)
61
63
  ```
@@ -164,7 +166,7 @@ Waiting for remote seeders to pick up the changes...
164
166
  Please add this key to the seeders now. The logs here will notify you when it is picked up by them. Do not shut down until that happens.
165
167
  ```
166
168
 
167
- Do as the logs instruct, and add your target key to 2 or more seeders. For this example, simple run 2 more seeder scripts like above, but this time for the target key.
169
+ Do as the logs instruct, and add your target key to 2 or more seeders. For this example, simply run 2 more seeder scripts like above, but this time for the target key.
168
170
 
169
171
  Once the program detects at least 2 seeders have fully downloaded the multisig drive, it will inform you it is done. Shut down with ctrl-c.
170
172
 
package/bin.js CHANGED
@@ -86,7 +86,8 @@ async function request() {
86
86
  .requestCore(publicKeys, namespace, srcCore, length, {
87
87
  force,
88
88
  peerUpdateTimeout: peerUpdateTimeout,
89
- quorum
89
+ quorum,
90
+ legacy: true // legacy requests compat with hypercore-sign v3
90
91
  })
91
92
  .done()
92
93
  request = res.request
@@ -95,7 +96,8 @@ async function request() {
95
96
  const req = await multisig.requestDrive(publicKeys, namespace, srcDrive, length, {
96
97
  force,
97
98
  peerUpdateTimeout: peerUpdateTimeout,
98
- quorum
99
+ quorum,
100
+ legacy: true // legacy requests compat with hypercore-sign v3
99
101
  })
100
102
 
101
103
  req.on('getting-src-blobs', () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyper-multisig-cli",
3
- "version": "1.1.3",
3
+ "version": "1.2.0",
4
4
  "description": "CLI of hyper-multisig",
5
5
  "main": "bin.js",
6
6
  "bin": {
@@ -21,9 +21,9 @@
21
21
  "bare-fs": "^4.5.4",
22
22
  "corestore": "^7.8.0",
23
23
  "graceful-goodbye": "^1.3.3",
24
- "hyper-multisig": "^1.0.4",
24
+ "hyper-multisig": "^2.1.0",
25
25
  "hypercore-id-encoding": "^1.3.0",
26
- "hypercore-signing-request": "^4.0.2",
26
+ "hypercore-signing-request": "^5.0.1",
27
27
  "hyperdrive": "^13.2.1",
28
28
  "hyperswarm": "^4.16.0",
29
29
  "paparam": "^1.10.0",
@@ -35,7 +35,6 @@
35
35
  "bare-process": "^4.2.2",
36
36
  "bare-subprocess": "^5.2.2",
37
37
  "brittle": "^3.19.1",
38
- "compact-encoding": "^2.18.0",
39
38
  "hypercore-crypto": "^3.6.1",
40
39
  "hypercore-sign": "^4.0.1",
41
40
  "hyperdht": "^6.29.0",