bsv2 2.2.1 → 2.2.3

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/README.md CHANGED
@@ -160,10 +160,9 @@ Chronicle activates at mainnet height 943,835, testnet 1,713,022 and regtest
160
160
  keep using BIP143. OTDA ignores `valueBn`, and the bit may be mixed across
161
161
  inputs.
162
162
  - `tx.versionBytesNum > 1`, or `Interp.SCRIPT_VERIFY_CHRONICLE`, enables the
163
- relaxed script policy: minimal encoding, Low-S, NULLDUMMY, clean stack and
164
- push-only unlocking scripts are no longer enforced. Version-1 transactions
165
- keep the existing checks. MINIMALIF and NULLFAIL are not enforced by this
166
- library for either version.
163
+ relaxed script policy: minimal encoding, Low-S, MINIMALIF, NULLFAIL,
164
+ NULLDUMMY, clean stack and push-only unlocking scripts are no longer
165
+ enforced. Version-1 transactions keep the checks enabled by the flags.
167
166
  - Restored opcodes: `OP_VER`, `OP_VERIF`, `OP_VERNOTIF`, `OP_SUBSTR`,
168
167
  `OP_LEFT`, `OP_RIGHT`, `OP_2MUL`, `OP_2DIV`, `OP_LSHIFTNUM`, `OP_RSHIFTNUM`.
169
168
  `OpCode.OP_SUBSTR_CHRONICLE`, `OP_LEFT_CHRONICLE`, `OP_RIGHT_CHRONICLE`,
@@ -224,8 +223,12 @@ yarn doc # regenerate API documentation
224
223
  ```
225
224
 
226
225
  The suite has over 8,500 tests, including reference vectors from bitcoind,
227
- Bitcoin ABC and Bitcoin SV, plus dedicated tests for the pre-Genesis and
228
- Chronicle policies. `yarn test` starts Vitest in watch mode.
226
+ Bitcoin ABC and Bitcoin SV, dedicated pre-Genesis and Chronicle tests, and
227
+ deterministic property tests for script, `Bn` and transaction round-trips.
228
+ `yarn test` starts Vitest in watch mode.
229
+
230
+ Scripts with truncated pushdata are parsed leniently and rejected during
231
+ execution; the pre-Genesis reference vectors rely on that behaviour.
229
232
 
230
233
  Commits and release tags are GPG-signed, and `commit.gpgsign` is enabled for
231
234
  future commits. Releases are published to npm and GitHub Releases with the same