@smartledger/bsv 9.13.0 → 9.15.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 +125 -0
- package/README.md +19 -19
- package/bsv-gdaf.min.js +44 -44
- package/bsv-ltp.min.js +22 -22
- package/bsv-smartcontract.min.js +1 -1
- package/bsv.bundle.js +44 -44
- package/bsv.d.ts +26 -4
- package/bsv.min.js +44 -44
- package/docs/AUDIT_SCOPE.md +8 -8
- 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/script/interpreter.js +93 -24
- package/lib/spv/merkleproof.js +63 -4
- package/package.json +1 -1
- package/tools/sv-vector-harness.js +11 -0
- package/version.js +1 -1
package/bsv.d.ts
CHANGED
|
@@ -540,6 +540,13 @@ declare module '@smartledger/bsv' {
|
|
|
540
540
|
*/
|
|
541
541
|
isAfterGenesis(): boolean;
|
|
542
542
|
isAfterChronicle(): boolean;
|
|
543
|
+
/**
|
|
544
|
+
* False where Chronicle applies and the spending transaction's version is
|
|
545
|
+
* above 1, which is how a transaction opts into malleability. LOW_S,
|
|
546
|
+
* MINIMALDATA, MINIMALIF, NULLFAIL, NULLDUMMY, SIGPUSHONLY and CLEANSTACK
|
|
547
|
+
* are not applied to such a transaction.
|
|
548
|
+
*/
|
|
549
|
+
enforceNonMalleability(): boolean;
|
|
543
550
|
/** 520 before Genesis, UNLIMITED after. */
|
|
544
551
|
maxScriptElementSize(): number;
|
|
545
552
|
/** 10,000 before Genesis, UNLIMITED after. */
|
|
@@ -1009,8 +1016,18 @@ declare module '@smartledger/bsv' {
|
|
|
1009
1016
|
* declares its own target, so without this a forged header costs nothing to make.
|
|
1010
1017
|
*/
|
|
1011
1018
|
powLimit?: number | string | object;
|
|
1012
|
-
/**
|
|
1019
|
+
/**
|
|
1020
|
+
* Minimum work the header must represent, in HASHES: 2^256 / (target + 1).
|
|
1021
|
+
* Difficulty 1 is about 4.295e9. Use `minDifficulty` to say it in difficulty.
|
|
1022
|
+
*/
|
|
1013
1023
|
minWork?: number | string | object;
|
|
1024
|
+
/**
|
|
1025
|
+
* The same floor in DIFFICULTY, which is the unit difficulty is quoted in: a real
|
|
1026
|
+
* BSV header is about 2.6e10, i.e. about 1.1e20 hashes. Exactly one of the two —
|
|
1027
|
+
* passing both throws, because they are 4.3e9 apart and silence would hide which
|
|
1028
|
+
* one applied.
|
|
1029
|
+
*/
|
|
1030
|
+
minDifficulty?: number | string;
|
|
1014
1031
|
}
|
|
1015
1032
|
interface InclusionResult {
|
|
1016
1033
|
valid: boolean;
|
|
@@ -1740,11 +1757,16 @@ declare module '@smartledger/bsv' {
|
|
|
1740
1757
|
*/
|
|
1741
1758
|
powLimit?: number | string;
|
|
1742
1759
|
/**
|
|
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.
|
|
1760
|
+
* Minimum work the header must represent, in HASHES. Difficulty 1 is about
|
|
1761
|
+
* 4.295e9, and a real mainnet header carries about 1e20. Either this,
|
|
1762
|
+
* `minDifficulty` or `blockHashAtHeight` will be required in 10.0.0.
|
|
1746
1763
|
*/
|
|
1747
1764
|
minWork?: number | string;
|
|
1765
|
+
/**
|
|
1766
|
+
* The same floor in DIFFICULTY (a real BSV header is about 2.6e10). Exactly one
|
|
1767
|
+
* of this and `minWork`; passing both throws.
|
|
1768
|
+
*/
|
|
1769
|
+
minDifficulty?: number | string;
|
|
1748
1770
|
/** Pass false only for test fixtures. Defaults to true. */
|
|
1749
1771
|
requirePow?: boolean;
|
|
1750
1772
|
}
|