@smartledger/bsv 6.2.1 → 7.0.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 +66 -0
- package/README.md +38 -38
- package/bsv-gdaf.min.js +17 -17
- package/bsv-ltp.min.js +17 -17
- package/bsv-smartcontract.min.js +18 -18
- package/bsv.bundle.js +17 -17
- package/bsv.d.ts +7 -6
- package/bsv.min.js +17 -17
- package/docs/MIGRATION_7.md +123 -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/index.mjs +116 -0
- package/lib/crypto/ecdsa.js +15 -14
- package/lib/gdaf/attestation-verifier.js +2 -7
- package/lib/gdaf/did-resolver.js +1 -3
- package/lib/ltp/obligation.js +1 -2
- package/lib/ltp/proof.js +1 -3
- package/lib/ltp/right.js +2 -3
- package/lib/smart_contract/preimage.js +48 -21
- package/package.json +18 -7
- package/test/build/esm_wrapper.js +66 -0
- package/test/build/exports_resolution.js +58 -0
- package/test/crypto/ecdsa.js +29 -4
- package/test/security/fail_closed_contracts.js +13 -9
- package/test/smart_contract/preimage.js +98 -0
- package/version.js +1 -1
package/bsv.d.ts
CHANGED
|
@@ -18,15 +18,16 @@ declare module '@smartledger/bsv' {
|
|
|
18
18
|
hashbuf?: Buffer;
|
|
19
19
|
sig?: Signature;
|
|
20
20
|
pubkey?: PublicKey;
|
|
21
|
-
/** Result of the last verify() call. */
|
|
21
|
+
/** Result of the last verify() call (also set as a side effect of verify()). */
|
|
22
22
|
verified?: boolean;
|
|
23
23
|
/**
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
24
|
+
* Verify the signature. Returns a strict boolean: `true` only when valid.
|
|
25
|
+
* @breaking 7.0 — previously returned the ECDSA instance (always truthy);
|
|
26
|
+
* the chained `.verify().verified` idiom no longer works, read the return
|
|
27
|
+
* value directly.
|
|
27
28
|
*/
|
|
28
|
-
verify():
|
|
29
|
-
/**
|
|
29
|
+
verify(): boolean;
|
|
30
|
+
/** Explicit boolean alias of verify(), retained for pre-7.0 callers. */
|
|
30
31
|
verifyBool(): boolean;
|
|
31
32
|
/** Static: sign a hash. */
|
|
32
33
|
static sign(message: Buffer, key: PrivateKey): Signature;
|