@smartledger/bsv 7.0.1 → 7.1.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 CHANGED
@@ -7,6 +7,166 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [7.1.0] - 2026-07-17
11
+
12
+ Six security fixes from an audit of the crypto core. Four change verification
13
+ behaviour; see **Breaking** at the end of this section before upgrading.
14
+
15
+ ### Fixed (security)
16
+
17
+ - **Strict DER parsing now actually enforces canonical INTEGERs.**
18
+ `parseDER(buf, strict)` defaults `strict` to `true`, but strictness only ever
19
+ checked the length byte — the integers themselves were never validated, so
20
+ `fromDER`/`fromString` accepted excessively padded values (`02 21 00 <r>` where
21
+ `r`'s high bit is clear), unpadded high-bit values (parsed unsigned, i.e. as a
22
+ different number than DER says), and zero-length values. Each is a second
23
+ encoding of the same signature, so a valid credential signature could be
24
+ re-encoded into different bytes that still verify. This reaches application
25
+ code: `LTP.Proof` verification, LTP and GDAF credential JWS verification, and
26
+ `SmartVerify` all parse via `fromDER` on the default (strict) path. Strict now
27
+ requires each INTEGER to be non-empty, high-bit-clear, and minimally padded.
28
+
29
+ **Consensus behaviour is unchanged.** The non-strict path is untouched, and
30
+ `fromTxFormat` — the only caller that passes `strict = false`, and the one that
31
+ parses signatures off the chain — still accepts every non-canonical encoding it
32
+ did before, as its own regression tests now assert. Script-level canonicality
33
+ continues to be enforced by `isTxDER` under the interpreter's flags, matching
34
+ bitcoind.
35
+
36
+ **Breaking** for callers that hand non-canonical DER to `fromDER`/`fromString`
37
+ and expect it to parse; they should pass `strict = false` explicitly (via
38
+ `parseDER`) if they are parsing chain data.
39
+
40
+ - **`parseDER` reported `sneg` from the wrong byte.** `buf[2 + 2 + rlength + 2 + 2]`
41
+ reads `sbuf[2]` rather than `sbuf[0]`, so the flag was wrong for any signature
42
+ whose `s` carries a pad byte (the `r` case one line up reads `rbuf[0]`
43
+ correctly). Latent — nothing internal consumes `sneg` — but it is part of the
44
+ returned object and was therefore wrong for external callers.
45
+
46
+ - **LTP identifiers are now drawn from the CSPRNG instead of `Math.random()`.**
47
+ `Right._generateUUID` and `Obligation._generateUUID` minted the `id` of signed
48
+ W3C Verifiable Credentials from `Math.random()`. That id is covered by the
49
+ credential's signature, is the primary key of the registry's registration and
50
+ revocation maps, and is an input to proof material (`LTP.Proof` derives a
51
+ witness from `sha256(nonce + token.id + predicate)`) — so it must be
52
+ unpredictable, not merely distinct. V8 implements `Math.random` with
53
+ xorshift128+, whose internal state is recoverable from a handful of outputs;
54
+ each UUID consumed 31 sequential draws, so a single issued token id leaked
55
+ enough state to predict every later id from that process, including ids issued
56
+ to other subjects. With the engine PRNG frozen, the old generator emitted the
57
+ fixed string `88888888-8888-4888-8888-888888888888`.
58
+
59
+ `Registry._generateRegistryId`, `Registry._generateAuditId` and
60
+ `Claim._generateBatchId` had the same defect via `Date.now() + Math.random()`
61
+ (the surrounding `sha256` added no entropy).
62
+
63
+ All five now route through a new `lib/util/id.js` (`uuid4`, `randomHex`) backed
64
+ by `bsv.crypto.Random`, matching what `GDAF`'s attestation signer already did.
65
+ **Output formats are unchanged** (`urn:uuid:` v4, `reg_` + 16 hex, `audit_` +
66
+ 12 hex, 16 hex), so stored identifiers and consumers are unaffected. The
67
+ `// Non-security: identifier collision avoidance only` comments at these sites
68
+ asserted the opposite of the truth and are gone.
69
+
70
+ - **`Registry._generateAuditId` widened from 48 to 128 bits.** Audit entries are
71
+ minted per action and retained for years, and a collision silently overwrites a
72
+ record in a `Map`-keyed store; at 48 bits a log passed a ~50% chance of a
73
+ collision around 16M entries. The per-registry ids above stay at 64 bits — they
74
+ are minted once each, so the birthday bound never comes into play.
75
+
76
+ **Format change:** `audit_` + 32 hex characters, was `audit_` + 12. The ids are
77
+ opaque and are not parsed anywhere in the package, and existing stored ids keep
78
+ working as map keys.
79
+
80
+ - **`Signature.prototype.applySecurityPatches()` now rejects a non-canonical
81
+ signature instead of silently rewriting it.** It replaced a high-S `s` with
82
+ `n - s` under an "anti-malleability" comment. That cannot protect against
83
+ malleability: ECDSA accepts `s` and `n - s` equally, so the rewritten signature
84
+ verifies exactly as the original did, and the only effect was to hide from the
85
+ caller that they had been handed a malleated signature. It now throws on
86
+ `s > n/2` (alongside the existing zero and out-of-range checks) and no longer
87
+ mutates. `toCanonical()` remains the way to deliberately normalize a signature,
88
+ and is unchanged — it returns a new Signature and never mutates the original.
89
+
90
+ The method had no callers anywhere in the package, and its docstring's claim
91
+ that it is "called during crypto operations" was false; that claim is gone.
92
+
93
+ **Breaking** for callers relying on it to normalize in place.
94
+
95
+ - **`ECDSA` no longer reuses a nonce when one instance signs twice.** `k` persisted
96
+ on the instance across `sign()` calls (`set()` deliberately carried it, and
97
+ `_findSignature` only derived a nonce when `!this.k`), so the documented
98
+ build-an-instance-and-`set()` idiom signed a second message with the *same* `k`:
99
+
100
+ ```js
101
+ const e = ECDSA().set({ privkey })
102
+ e.set({ hashbuf: h1 }).sign() // k derived and cached
103
+ e.set({ hashbuf: h2 }).sign() // same k, same r
104
+ ```
105
+
106
+ Two signatures over different messages under one nonce reveal the private key by
107
+ elementary algebra; this was verified with a repro that recovers the signer's WIF
108
+ from the two signatures. `signRandomK()` was worse — it assigned `this.k`, so any
109
+ later `sign()` on that instance silently reused the random nonce. `k` now carries
110
+ a freshness bit: every assignment path (`ecdsa.k = ...`, `set({k})`, `randomK()`,
111
+ `deterministicK()`) marks it fresh, and a signature consumes it, so the next
112
+ `sign()` derives a new RFC 6979 nonce instead of reusing a spent one. No internal
113
+ call site was affected — each constructs a fresh `ECDSA` per signature — so this
114
+ changes no signature this library previously produced. Backward compatible: an
115
+ explicitly supplied `k` is still honoured for one signature (RFC 6979 test
116
+ vectors included), and signing the same message still yields the same signature.
117
+ Inherited from upstream bsv.
118
+
119
+ - **`SmartVerify.smartVerify()` now rejects malleated (high-S) signatures instead
120
+ of accepting them.** The function canonicalized `s` and then verified the
121
+ *rewritten* signature — but ECDSA accepts `s` and `n-s` equally, so the
122
+ canonicalization was a no-op that made every high-S signature return `true`. A
123
+ caller using the hardened module as a low-S gate (its stated contract: "valid
124
+ **and** canonical", its header: "malleability protection") received no protection
125
+ while believing otherwise. It now returns `false` for `s > n/2`, matching the
126
+ neighbouring `isCanonical()`. `canonicalize()` is unchanged — it is honestly
127
+ named and still rewrites.
128
+
129
+ **Breaking:** code relying on `smartVerify` to accept and silently normalize
130
+ high-S signatures must canonicalize first (`SmartVerify.canonicalize(sig)`) or
131
+ use `ECDSA.verify`, which is unchanged and still accepts either form. The test
132
+ asserting the old behaviour ("accepts a malleated (high-S) signature as valid but
133
+ canonicalizes it") encoded the bug as intent and has been inverted.
134
+
135
+ ### Fixed
136
+
137
+ - **`npm test` now runs against an installed copy of the package.**
138
+ `test/build/esm_wrapper.js` required `scripts/gen-esm-wrapper`, which is dev
139
+ tooling and is not published. Since `.mocharc.json` globs `test/**/*.js`, that
140
+ one unresolvable require aborted the whole run before a single test executed —
141
+ so the suite the package deliberately ships was dead on arrival in the tarball.
142
+ The two checks that regenerate and diff `index.mjs` can only run from a
143
+ checkout and now skip when the generator is absent; the ESM import checks, which
144
+ are the ones meaningful to a consumer, run everywhere. Verified by packing,
145
+ installing and running the suite from the tarball: 4463 passing, 2 pending.
146
+
147
+ ## [7.0.2] - 2026-07-16
148
+
149
+ ### Fixed
150
+
151
+ A codebase-wide audit for the same silent-argument class as the 7.0.1
152
+ `Mnemonic.fromRandom` bug found three more confirmed foot-guns, each verified
153
+ with a repro and now gated by a regression test:
154
+
155
+ - **`HDPrivateKey.fromRandom(network)` silently ignored the network** and always
156
+ returned a mainnet key. `fromRandom('testnet')` produced an `xprv` (livenet)
157
+ instead of a `tprv` (testnet), with no error — so a testnet wallet was
158
+ generated on mainnet. It now forwards the network to the constructor (which
159
+ already routes it to random generation). `fromRandom()` default is unchanged.
160
+ - **`Base58Check.fromString` returned a plain `Base58`** (no checksum) instead of
161
+ a `Base58Check`, so `Base58Check.encode(...)` → `fromString` → `toString`
162
+ silently round-tripped to a *different, unchecksummed* string. It now returns a
163
+ `Base58Check`.
164
+ - **Bitcore ECIES dropped its `opts` when called without `new`** — `ECIES({ noKey:
165
+ true })` (the factory idiom used throughout the suite) silently ignored
166
+ `noKey`/`shortTag`, changing the wire format (e.g. leaking the 33-byte sender
167
+ pubkey). The no-`new` path now forwards `opts`. (The default `bsv.ECIES`
168
+ electrum variant was already correct.)
169
+
10
170
  ## [7.0.1] - 2026-07-16
11
171
 
12
172
  ### Fixed (security)
package/README.md CHANGED
@@ -186,42 +186,42 @@ console.log('Status:', status) // 'revoked'
186
186
  ### **Core Modules**
187
187
  | Module | Size | Use Case | CDN |
188
188
  |--------|------|----------|-----|
189
- | **bsv.min.js** | 1149KB | Core BSV + SmartContract | `unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js` |
190
- | **bsv.bundle.js** | 1149KB | Everything in one file | `unpkg.com/@smartledger/bsv@7.0.1/bsv.bundle.js` |
189
+ | **bsv.min.js** | 1149KB | Core BSV + SmartContract | `unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js` |
190
+ | **bsv.bundle.js** | 1149KB | Everything in one file | `unpkg.com/@smartledger/bsv@7.1.0/bsv.bundle.js` |
191
191
 
192
192
  ### **W3C Verifiable Credentials**
193
193
  | Module | Size | Use Case | CDN |
194
194
  |--------|------|----------|-----|
195
- | **🟢 bsv-didweb.min.js** | 315KB | **DID:web generation** | `unpkg.com/@smartledger/bsv@7.0.1/bsv-didweb.min.js` |
196
- | **🟢 bsv-vcjwt.min.js** | 315KB | **VC-JWT issue/verify** | `unpkg.com/@smartledger/bsv@7.0.1/bsv-vcjwt.min.js` |
197
- | **🟢 bsv-statuslist.min.js** | 415KB | **StatusList2021 revocation** | `unpkg.com/@smartledger/bsv@7.0.1/bsv-statuslist.min.js` |
198
- | **🟢 bsv-anchor.min.js** | 314KB | **BSV anchoring (hash-only)** | `unpkg.com/@smartledger/bsv@7.0.1/bsv-anchor.min.js` |
195
+ | **🟢 bsv-didweb.min.js** | 315KB | **DID:web generation** | `unpkg.com/@smartledger/bsv@7.1.0/bsv-didweb.min.js` |
196
+ | **🟢 bsv-vcjwt.min.js** | 315KB | **VC-JWT issue/verify** | `unpkg.com/@smartledger/bsv@7.1.0/bsv-vcjwt.min.js` |
197
+ | **🟢 bsv-statuslist.min.js** | 415KB | **StatusList2021 revocation** | `unpkg.com/@smartledger/bsv@7.1.0/bsv-statuslist.min.js` |
198
+ | **🟢 bsv-anchor.min.js** | 314KB | **BSV anchoring (hash-only)** | `unpkg.com/@smartledger/bsv@7.1.0/bsv-anchor.min.js` |
199
199
 
200
200
  ### **Smart Contract & Development**
201
201
  | Module | Size | Use Case | CDN |
202
202
  |--------|------|----------|-----|
203
- | **bsv-smartcontract.min.js** | 873KB | Complete covenant framework | `unpkg.com/@smartledger/bsv@7.0.1/bsv-smartcontract.min.js` |
204
- | **bsv-covenant.min.js** | 873KB | Covenant operations | `unpkg.com/@smartledger/bsv@7.0.1/bsv-covenant.min.js` |
205
- | **bsv-script-helper.min.js** | 30KB | Custom script tools | `unpkg.com/@smartledger/bsv@7.0.1/bsv-script-helper.min.js` |
206
- | **bsv-security.min.js** | 30KB | Security enhancements | `unpkg.com/@smartledger/bsv@7.0.1/bsv-security.min.js` |
203
+ | **bsv-smartcontract.min.js** | 873KB | Complete covenant framework | `unpkg.com/@smartledger/bsv@7.1.0/bsv-smartcontract.min.js` |
204
+ | **bsv-covenant.min.js** | 873KB | Covenant operations | `unpkg.com/@smartledger/bsv@7.1.0/bsv-covenant.min.js` |
205
+ | **bsv-script-helper.min.js** | 30KB | Custom script tools | `unpkg.com/@smartledger/bsv@7.1.0/bsv-script-helper.min.js` |
206
+ | **bsv-security.min.js** | 30KB | Security enhancements | `unpkg.com/@smartledger/bsv@7.1.0/bsv-security.min.js` |
207
207
 
208
208
  ### **Legal & Compliance**
209
209
  | Module | Size | Use Case | CDN |
210
210
  |--------|------|----------|-----|
211
- | **bsv-ltp.min.js** | 1149KB | Legal Token Protocol | `unpkg.com/@smartledger/bsv@7.0.1/bsv-ltp.min.js` |
212
- | **bsv-gdaf.min.js** | 1149KB | Digital Identity & Attestation | `unpkg.com/@smartledger/bsv@7.0.1/bsv-gdaf.min.js` |
211
+ | **bsv-ltp.min.js** | 1149KB | Legal Token Protocol | `unpkg.com/@smartledger/bsv@7.1.0/bsv-ltp.min.js` |
212
+ | **bsv-gdaf.min.js** | 1149KB | Digital Identity & Attestation | `unpkg.com/@smartledger/bsv@7.1.0/bsv-gdaf.min.js` |
213
213
 
214
214
  ### **Advanced Cryptography**
215
215
  | Module | Size | Use Case | CDN |
216
216
  |--------|------|----------|-----|
217
- | **bsv-shamir.min.js** | 353KB | Threshold Cryptography | `unpkg.com/@smartledger/bsv@7.0.1/bsv-shamir.min.js` |
217
+ | **bsv-shamir.min.js** | 353KB | Threshold Cryptography | `unpkg.com/@smartledger/bsv@7.1.0/bsv-shamir.min.js` |
218
218
 
219
219
  ### **Utilities**
220
220
  | Module | Size | Use Case | CDN |
221
221
  |--------|------|----------|-----|
222
- | **bsv-ecies.min.js** | 79KB | Encryption | `unpkg.com/@smartledger/bsv@7.0.1/bsv-ecies.min.js` |
223
- | **bsv-message.min.js** | 30KB | Message signing | `unpkg.com/@smartledger/bsv@7.0.1/bsv-message.min.js` |
224
- | **bsv-mnemonic.min.js** | 592KB | HD wallets | `unpkg.com/@smartledger/bsv@7.0.1/bsv-mnemonic.min.js` |
222
+ | **bsv-ecies.min.js** | 79KB | Encryption | `unpkg.com/@smartledger/bsv@7.1.0/bsv-ecies.min.js` |
223
+ | **bsv-message.min.js** | 30KB | Message signing | `unpkg.com/@smartledger/bsv@7.1.0/bsv-message.min.js` |
224
+ | **bsv-mnemonic.min.js** | 592KB | HD wallets | `unpkg.com/@smartledger/bsv@7.1.0/bsv-mnemonic.min.js` |
225
225
 
226
226
  ## ⚡ **2-Minute Quick Start**
227
227
 
@@ -232,7 +232,7 @@ Get started with Bitcoin SV development in under 2 minutes:
232
232
  npm install @smartledger/bsv
233
233
 
234
234
  # Or include in HTML
235
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
235
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
236
236
  ```
237
237
 
238
238
  > **🔒 v5.0.0 (production hardening — has breaking changes):** Shamir secret
@@ -332,8 +332,8 @@ const covenant = bsv.SmartContract.createCovenantBuilder()
332
332
 
333
333
  ### 🔧 **Basic Development** (~1.2MB total)
334
334
  ```html
335
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
336
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-script-helper.min.js"></script>
335
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
336
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-script-helper.min.js"></script>
337
337
  <script>
338
338
  const privateKey = new bsv.PrivateKey();
339
339
  const utxos = new bsv.SmartContract.UTXOGenerator().createRealUTXOs(2, 100000);
@@ -342,9 +342,9 @@ const covenant = bsv.SmartContract.createCovenantBuilder()
342
342
 
343
343
  ### 🔒 **Smart Contract Development** (~2.8MB total — each bundle re-embeds core BSV)
344
344
  ```html
345
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
346
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-covenant.min.js"></script>
347
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-smartcontract.min.js"></script>
345
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
346
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-covenant.min.js"></script>
347
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-smartcontract.min.js"></script>
348
348
  <script>
349
349
  const covenant = bsv.SmartContract.createCovenantBuilder()
350
350
  .extractField('amount').push(50000).greaterThanOrEqual().verify().build();
@@ -354,9 +354,9 @@ const covenant = bsv.SmartContract.createCovenantBuilder()
354
354
 
355
355
  ### 🆕 **Legal & Identity Development** (~3.4MB total — each bundle re-embeds core BSV)
356
356
  ```html
357
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
358
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-ltp.min.js"></script>
359
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-gdaf.min.js"></script>
357
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
358
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-ltp.min.js"></script>
359
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-gdaf.min.js"></script>
360
360
  <script>
361
361
  // Legal Token Protocol
362
362
  const propertyToken = bsv.createPropertyToken({
@@ -370,9 +370,9 @@ const covenant = bsv.SmartContract.createCovenantBuilder()
370
370
 
371
371
  ### 🆕 **Security & Cryptography** (~1.5MB total)
372
372
  ```html
373
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
374
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-security.min.js"></script>
375
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-shamir.min.js"></script>
373
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
374
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-security.min.js"></script>
375
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-shamir.min.js"></script>
376
376
  <script>
377
377
  // Threshold Cryptography
378
378
  const shares = bsv.splitSecret('my_secret_key', 5, 3); // 5 shares, 3 needed
@@ -384,7 +384,7 @@ const covenant = bsv.SmartContract.createCovenantBuilder()
384
384
 
385
385
  ### 🎯 **Everything Bundle** (~1.1MB)
386
386
  ```html
387
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.bundle.js"></script>
387
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.bundle.js"></script>
388
388
  <script>
389
389
  // Everything available immediately
390
390
  const shares = bsv.splitSecret('secret', 5, 3); // Shamir Secret Sharing
@@ -494,8 +494,8 @@ const contractTx = covenant.createCovenantTransaction({
494
494
 
495
495
  #### 1. **Minimal Setup** - Core + Script Helper (~1.2MB)
496
496
  ```html
497
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
498
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-script-helper.min.js"></script>
497
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
498
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-script-helper.min.js"></script>
499
499
  <script>
500
500
  const tx = new bsv.Transaction();
501
501
  const sig = bsvScriptHelper.createSignature(tx, privateKey, 0, script, satoshis);
@@ -504,9 +504,9 @@ const contractTx = covenant.createCovenantTransaction({
504
504
 
505
505
  #### 2. **DeFi Development** - Core + Covenants + Debug (~2.8MB — each bundle re-embeds core BSV)
506
506
  ```html
507
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
508
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-covenant.min.js"></script>
509
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-smartcontract.min.js"></script>
507
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
508
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-covenant.min.js"></script>
509
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-smartcontract.min.js"></script>
510
510
  <script>
511
511
  const covenant = new bsvCovenant.CovenantInterface();
512
512
  const debugInfo = SmartContract.interpretScript(script);
@@ -516,8 +516,8 @@ const contractTx = covenant.createCovenantTransaction({
516
516
 
517
517
  #### 3. **Security First** - Core + Enhanced Security (~1.2MB)
518
518
  ```html
519
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.min.js"></script>
520
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv-security.min.js"></script>
519
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.min.js"></script>
520
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv-security.min.js"></script>
521
521
  <script>
522
522
  const verified = bsvSecurity.SmartVerify.verify(signature, hash, publicKey);
523
523
  const enhanced = bsvSecurity.EllipticFixed.createSignature(privateKey, hash);
@@ -526,7 +526,7 @@ const contractTx = covenant.createCovenantTransaction({
526
526
 
527
527
  #### 4. **Everything Bundle** - One File Solution (~1.1MB)
528
528
  ```html
529
- <script src="https://unpkg.com/@smartledger/bsv@7.0.1/bsv.bundle.js"></script>
529
+ <script src="https://unpkg.com/@smartledger/bsv@7.1.0/bsv.bundle.js"></script>
530
530
  <script>
531
531
  // Everything available under bsv namespace
532
532
  const keys = bsv.SmartLedgerBundle.generateKeys();
@@ -834,7 +834,7 @@ const timelockScript = helper.createTimelockScript(
834
834
 
835
835
  See the **[16 Loading Options](#-16-loading-options---choose-your-approach)**
836
836
  table near the top for the full list of bundles with current sizes and
837
- canonical `unpkg.com/@smartledger/bsv@7.0.1/...` URLs.
837
+ canonical `unpkg.com/@smartledger/bsv@7.1.0/...` URLs.
838
838
 
839
839
  ## 🔐 Security
840
840