bsv2 2.2.3 → 2.3.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.
- package/README.md +30 -1
- package/dist/bsv2.cjs +3 -3
- package/dist/bsv2.cjs.map +1 -1
- package/dist/bsv2.mjs +365 -338
- package/dist/bsv2.mjs.map +1 -1
- package/dist/bsv2.umd.js +3 -3
- package/dist/bsv2.umd.js.map +1 -1
- package/package.json +16 -15
package/README.md
CHANGED
|
@@ -30,7 +30,7 @@ of the `bsv` 2.x codebase: same class-based API, published on npm as
|
|
|
30
30
|
npm install bsv2
|
|
31
31
|
```
|
|
32
32
|
|
|
33
|
-
Node.js
|
|
33
|
+
Node.js 20.19 or newer is required (the development toolchain uses Vite 7).
|
|
34
34
|
|
|
35
35
|
```js
|
|
36
36
|
// ESM (package.json "type": "module", or a .mjs file)
|
|
@@ -248,6 +248,35 @@ dependencies pinned to patched versions.
|
|
|
248
248
|
pre-Chronicle ABC vectors whose random `0x20` bit changed meaning are
|
|
249
249
|
excluded from the test suite.
|
|
250
250
|
|
|
251
|
+
## Ecosystem: BRC-100 and ts-stack
|
|
252
|
+
|
|
253
|
+
`bsv2` is a low-level primitives library: transactions, scripts, keys,
|
|
254
|
+
cryptography and serialization. It does **not** implement the BRC-100
|
|
255
|
+
wallet-to-application interface.
|
|
256
|
+
|
|
257
|
+
For BRC-100 integrations use the BSV Association reference implementations in
|
|
258
|
+
[`bsv-blockchain/ts-stack`](https://github.com/bsv-blockchain/ts-stack):
|
|
259
|
+
|
|
260
|
+
- `@bsv/sdk` — primitives, identities, overlays and the BRC-100 `WalletClient`.
|
|
261
|
+
- `@bsv/wallet-toolbox` — BRC-100 storage, services, signing and wallet tooling
|
|
262
|
+
(`WalletSigner`, baskets, BEEF, BKDS key derivation).
|
|
263
|
+
|
|
264
|
+
See [BRC-100](https://bsv.brc.dev/wallet/0100.md) for the normative interface.
|
|
265
|
+
|
|
266
|
+
## Known differences from the C++ reference
|
|
267
|
+
|
|
268
|
+
- Activation is expressed with `SCRIPT_VERIFY_CHRONICLE` or a transaction
|
|
269
|
+
version above 1; the library has no block height, so policy is not tied to a
|
|
270
|
+
chain height.
|
|
271
|
+
- Pre-Genesis rules are selected explicitly with `SCRIPT_VERIFY_PREGENESIS_LIMITS`;
|
|
272
|
+
outside Chronicle some legacy policy differences (for example multiple
|
|
273
|
+
`OP_ELSE`) are permitted because older reference vectors rely on them.
|
|
274
|
+
- `Sig.toTxFormat()` serializes the hash type as one byte, as required inside
|
|
275
|
+
scripts; C++ `SigHashType` also supports a 32-bit form with a fork value.
|
|
276
|
+
- `Bip39` buffer serialization stores the mnemonic and seed but not the
|
|
277
|
+
wordlist; re-create non-English mnemonics with `Bip39Jp`/`Bip39Es` after a
|
|
278
|
+
binary round-trip.
|
|
279
|
+
|
|
251
280
|
## Security
|
|
252
281
|
|
|
253
282
|
Please report security issues privately through the repository's security
|