@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/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
- /** Minimum work the header must represent: 2^256 / (target + 1). Difficulty 1 is about 4.295e9. */
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 4.295e9, and a
1744
- * real mainnet header carries about 1e20. Either this or `blockHashAtHeight` will
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
  }