@smartledger/bsv 5.5.0 → 5.5.1

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 (87) hide show
  1. package/.mocharc.json +5 -0
  2. package/CHANGELOG.md +20 -0
  3. package/bsv-covenant.min.js +2 -2
  4. package/bsv-gdaf.min.js +2 -2
  5. package/bsv-ltp.min.js +2 -2
  6. package/bsv-smartcontract.min.js +2 -2
  7. package/bsv.bundle.js +2 -2
  8. package/bsv.min.js +2 -2
  9. package/lib/smart_contract/covenant_helpers.js +3 -3
  10. package/lib/smart_contract/index.js +4 -5
  11. package/package.json +3 -1
  12. package/test/address.js +629 -0
  13. package/test/block/block.js +239 -0
  14. package/test/block/blockheader.js +270 -0
  15. package/test/block/merkleblock.js +207 -0
  16. package/test/cli/smoke.js +261 -0
  17. package/test/credentials-test.js +329 -0
  18. package/test/crypto/bn.js +168 -0
  19. package/test/crypto/ecdsa.js +328 -0
  20. package/test/crypto/elliptic-fixed.js +61 -0
  21. package/test/crypto/hash.browser.js +121 -0
  22. package/test/crypto/hash.js +122 -0
  23. package/test/crypto/point.js +193 -0
  24. package/test/crypto/random.js +32 -0
  25. package/test/crypto/security.js +127 -0
  26. package/test/crypto/shamir.js +169 -0
  27. package/test/crypto/signature.js +318 -0
  28. package/test/data/bip69.json +215 -0
  29. package/test/data/bitcoind/base58_keys_invalid.json +152 -0
  30. package/test/data/bitcoind/base58_keys_valid.json +452 -0
  31. package/test/data/bitcoind/blocks.json +27 -0
  32. package/test/data/bitcoind/script_tests.json +2244 -0
  33. package/test/data/bitcoind/sig_canonical.json +7 -0
  34. package/test/data/bitcoind/sig_noncanonical.json +22 -0
  35. package/test/data/bitcoind/tx_invalid.json +177 -0
  36. package/test/data/bitcoind/tx_valid.json +224 -0
  37. package/test/data/blk86756-testnet.dat +0 -0
  38. package/test/data/blk86756-testnet.js +12 -0
  39. package/test/data/blk86756-testnet.json +684 -0
  40. package/test/data/ecdsa.json +230 -0
  41. package/test/data/merkleblocks.js +486 -0
  42. package/test/data/messages.json +22 -0
  43. package/test/data/sighash.json +1004 -0
  44. package/test/data/tx_creation.json +85 -0
  45. package/test/ecies/bitcore-ecies.js +170 -0
  46. package/test/ecies/electrum-ecies.js +206 -0
  47. package/test/encoding/base58.js +131 -0
  48. package/test/encoding/base58check.js +136 -0
  49. package/test/encoding/bufferreader.js +328 -0
  50. package/test/encoding/bufferwriter.js +160 -0
  51. package/test/encoding/varint.js +104 -0
  52. package/test/gdaf/canonicalize.js +140 -0
  53. package/test/hdkeys.js +365 -0
  54. package/test/hdprivatekey.js +330 -0
  55. package/test/hdpublickey.js +293 -0
  56. package/test/index.js +16 -0
  57. package/test/ltp/right.js +198 -0
  58. package/test/message/message.js +190 -0
  59. package/test/mnemonic/data/fixtures.json +300 -0
  60. package/test/mnemonic/mnemonic.js +245 -0
  61. package/test/mnemonic/mocha.opts +1 -0
  62. package/test/mnemonic/pbkdf2.test.js +43 -0
  63. package/test/networks.js +162 -0
  64. package/test/opcode.js +161 -0
  65. package/test/privatekey.js +430 -0
  66. package/test/publickey.js +411 -0
  67. package/test/script/genesis_limits.js +80 -0
  68. package/test/script/interpreter.js +723 -0
  69. package/test/script/script.js +1256 -0
  70. package/test/script/string_ops.js +72 -0
  71. package/test/smart_contract/covenants.js +247 -0
  72. package/test/smart_contract/dsl_debugger.js +103 -0
  73. package/test/smart_contract/token_generalized.js +187 -0
  74. package/test/transaction/deserialize.js +33 -0
  75. package/test/transaction/input/input.js +92 -0
  76. package/test/transaction/input/multisig.js +174 -0
  77. package/test/transaction/input/multisigscripthash.js +111 -0
  78. package/test/transaction/input/publickey.js +68 -0
  79. package/test/transaction/input/publickeyhash.js +59 -0
  80. package/test/transaction/output.js +185 -0
  81. package/test/transaction/sighash.js +71 -0
  82. package/test/transaction/signature.js +127 -0
  83. package/test/transaction/transaction.js +1299 -0
  84. package/test/transaction/unspentoutput.js +92 -0
  85. package/test/util/js.js +76 -0
  86. package/test/util/preconditions.js +79 -0
  87. package/test/vcjwt/interop.js +126 -0
package/.mocharc.json ADDED
@@ -0,0 +1,5 @@
1
+ {
2
+ "recursive": true,
3
+ "timeout": 8000,
4
+ "spec": "test/**/*.js"
5
+ }
package/CHANGELOG.md CHANGED
@@ -5,6 +5,26 @@ All notable changes to SmartLedger-BSV will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [5.5.1] - 2026-06-25
9
+
10
+ Patch release. Credibility/transparency cleanup — no API or behavior changes.
11
+
12
+ ### Changed
13
+
14
+ - **Tests now ship in the published tarball.** `test/` and `.mocharc.json` are
15
+ added to `package.json` `files`, so a consumer can independently run the suite
16
+ (`npm test`, with mocha/chai installed) instead of taking "4267 passing" on
17
+ faith.
18
+ - **`SmartContract.version` tracks the package version** (read from
19
+ `package.json`) instead of a hardcoded `'v1.0.0'` that had drifted from the
20
+ 5.x package.
21
+ - **Dropped the `PRODUCTION_READY` feature flag** — it asserted a claim rather
22
+ than describing a capability.
23
+ - **Softened an unverifiable comment** in `covenant_helpers.js` ("covenants
24
+ verified here have been deployed and spent on BSV mainnet") to an accurate
25
+ statement: the local verify flags mirror mainnet relay/consensus policy, so a
26
+ covenant that passes is expected to be accepted on broadcast.
27
+
8
28
  ## [5.5.0] - 2026-06-25
9
29
 
10
30
  Minor release. Closes a front-running theft flaw in the ownership-token covenant