@smartledger/bsv 7.10.1 → 7.12.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 +109 -0
- package/README.md +38 -38
- package/bsv-anchor.min.js +11 -17
- package/bsv-didweb.min.js +11 -17
- package/bsv-gdaf.min.js +69 -75
- package/bsv-ltp.min.js +55 -61
- package/bsv-mnemonic.min.js +11 -17
- package/bsv-shamir.min.js +11 -17
- package/bsv-smartcontract.min.js +1 -1
- package/bsv-statuslist.min.js +53 -59
- package/bsv-vcjwt.min.js +11 -17
- package/bsv.bundle.js +69 -75
- package/bsv.d.ts +15 -0
- package/bsv.min.js +69 -75
- package/build/esbuild/crypto-shim.js +35 -0
- package/build/esbuild.js +7 -3
- package/docs/AUDIT_SCOPE.md +199 -0
- package/docs/MODULE_REFERENCE_COMPLETE.md +27 -27
- package/docs/advanced/UTXO_MANAGER_GUIDE.md +1 -1
- 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/script/interpreter.js +50 -0
- package/package.json +13 -2
- package/test/build/bundle_crypto_shim.js +104 -0
- package/test/build/bundle_externals.js +12 -3
- package/test/script/chronicle.js +40 -3
- package/version.js +1 -1
package/bsv.d.ts
CHANGED
|
@@ -371,6 +371,21 @@ declare module '@smartledger/bsv' {
|
|
|
371
371
|
* Off by default — enabling it changes script evaluation.
|
|
372
372
|
*/
|
|
373
373
|
const SCRIPT_ENABLE_CHRONICLE: number;
|
|
374
|
+
/** Block height at which Chronicle activated on BSV mainnet (2026-04-07). */
|
|
375
|
+
const CHRONICLE_ACTIVATION_HEIGHT: number;
|
|
376
|
+
/**
|
|
377
|
+
* Script-verification flags matching BSV mainnet consensus.
|
|
378
|
+
*
|
|
379
|
+
* `verify()` itself defaults to no flags — a validator should state the
|
|
380
|
+
* consensus context it is validating against. This assembles that context
|
|
381
|
+
* correctly so callers do not have to.
|
|
382
|
+
*
|
|
383
|
+
* `afterChronicle` defaults to true; pass false to validate the spend of a
|
|
384
|
+
* pre-activation UTXO, which is the distinction the node makes per input.
|
|
385
|
+
* Note that script-number and element-size limits are statics raised by
|
|
386
|
+
* `useGenesisLimits()`, not flags.
|
|
387
|
+
*/
|
|
388
|
+
function mainnetFlags(opts?: { afterChronicle?: boolean }): number;
|
|
374
389
|
|
|
375
390
|
// Pre-Genesis consensus caps (defaults: 520 / 4 / 201 / 10,000).
|
|
376
391
|
// Mutable: see useGenesisLimits() for a one-call opt-in.
|