@smartledger/bsv 9.13.0 → 9.14.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.
- package/CHANGELOG.md +28 -0
- package/README.md +19 -19
- package/bsv-gdaf.min.js +44 -44
- package/bsv-smartcontract.min.js +1 -1
- package/bsv.bundle.js +44 -44
- package/bsv.d.ts +19 -4
- package/bsv.min.js +44 -44
- package/docs/AUDIT_SCOPE.md +7 -7
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- package/docs/audit-rfq/cure53.txt +2 -2
- package/docs/audit-rfq/ncc-group.txt +2 -2
- package/docs/audit-rfq/trail-of-bits.txt +2 -2
- package/docs/getting-started/INSTALLATION.md +23 -23
- package/docs/getting-started/QUICK_START.md +7 -7
- package/docs/migration/FROM_BSV_1_5_6.md +5 -5
- package/lib/notaryhash/index.js +8 -3
- package/lib/spv/merkleproof.js +63 -4
- package/package.json +1 -1
- package/version.js +1 -1
package/bsv.d.ts
CHANGED
|
@@ -1009,8 +1009,18 @@ declare module '@smartledger/bsv' {
|
|
|
1009
1009
|
* declares its own target, so without this a forged header costs nothing to make.
|
|
1010
1010
|
*/
|
|
1011
1011
|
powLimit?: number | string | object;
|
|
1012
|
-
/**
|
|
1012
|
+
/**
|
|
1013
|
+
* Minimum work the header must represent, in HASHES: 2^256 / (target + 1).
|
|
1014
|
+
* Difficulty 1 is about 4.295e9. Use `minDifficulty` to say it in difficulty.
|
|
1015
|
+
*/
|
|
1013
1016
|
minWork?: number | string | object;
|
|
1017
|
+
/**
|
|
1018
|
+
* The same floor in DIFFICULTY, which is the unit difficulty is quoted in: a real
|
|
1019
|
+
* BSV header is about 2.6e10, i.e. about 1.1e20 hashes. Exactly one of the two —
|
|
1020
|
+
* passing both throws, because they are 4.3e9 apart and silence would hide which
|
|
1021
|
+
* one applied.
|
|
1022
|
+
*/
|
|
1023
|
+
minDifficulty?: number | string;
|
|
1014
1024
|
}
|
|
1015
1025
|
interface InclusionResult {
|
|
1016
1026
|
valid: boolean;
|
|
@@ -1740,11 +1750,16 @@ declare module '@smartledger/bsv' {
|
|
|
1740
1750
|
*/
|
|
1741
1751
|
powLimit?: number | string;
|
|
1742
1752
|
/**
|
|
1743
|
-
* Minimum work the header must represent. Difficulty 1 is about
|
|
1744
|
-
* real mainnet header carries about 1e20. Either this
|
|
1745
|
-
* be required in 10.0.0.
|
|
1753
|
+
* Minimum work the header must represent, in HASHES. Difficulty 1 is about
|
|
1754
|
+
* 4.295e9, and a real mainnet header carries about 1e20. Either this,
|
|
1755
|
+
* `minDifficulty` or `blockHashAtHeight` will be required in 10.0.0.
|
|
1746
1756
|
*/
|
|
1747
1757
|
minWork?: number | string;
|
|
1758
|
+
/**
|
|
1759
|
+
* The same floor in DIFFICULTY (a real BSV header is about 2.6e10). Exactly one
|
|
1760
|
+
* of this and `minWork`; passing both throws.
|
|
1761
|
+
*/
|
|
1762
|
+
minDifficulty?: number | string;
|
|
1748
1763
|
/** Pass false only for test fixtures. Defaults to true. */
|
|
1749
1764
|
requirePow?: boolean;
|
|
1750
1765
|
}
|