hyper-multisig 1.0.3 → 1.0.4

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 (2) hide show
  1. package/lib/core.js +4 -2
  2. package/package.json +1 -1
package/lib/core.js CHANGED
@@ -23,16 +23,18 @@ const idEnc = require('hypercore-id-encoding')
23
23
  /**
24
24
  * @param {string[]} publicKeys
25
25
  * @param {string} namespace
26
+ * @param {{ quorum?: number }} [opts]
26
27
  * @return {string}
27
28
  */
28
- function getCoreKey(publicKeys, namespace) {
29
- const manifest = getManifest(publicKeys, namespace)
29
+ function getCoreKey(publicKeys, namespace, { quorum } = {}) {
30
+ const manifest = getManifest(publicKeys, namespace, { quorum })
30
31
  return Hypercore.key(manifest)
31
32
  }
32
33
 
33
34
  /**
34
35
  * @param {string[]} publicKeys
35
36
  * @param {string} namespace
37
+ * @param {{ quorum?: number }} [opts]
36
38
  * @return {Manifest}
37
39
  */
38
40
  function getManifest(publicKeys, namespace, { quorum } = {}) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hyper-multisig",
3
- "version": "1.0.3",
3
+ "version": "1.0.4",
4
4
  "description": "Multisig hypercore and hyperdrive",
5
5
  "main": "index.js",
6
6
  "files": [