@nockchain/rose-ts 0.1.1-alpha.8 → 0.1.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 +8 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
#
|
|
1
|
+
# rose-ts
|
|
2
2
|
|
|
3
|
-
Pure TypeScript Nockchain wallet primitives — a curated drop-in for protocol-facing APIs in `@
|
|
3
|
+
Pure TypeScript Nockchain wallet primitives — a curated drop-in for protocol-facing APIs in `@nockbox/iris-wasm`, without a WebAssembly runtime.
|
|
4
4
|
|
|
5
5
|
Use it in Node.js, browsers, React Native, Cloudflare Workers, or anywhere you want Nockchain cryptography and transaction semantics in plain TS.
|
|
6
6
|
|
|
7
|
-
**Parity bar:** 78 vitest tests compare implemented exports against `@
|
|
7
|
+
**Parity bar:** 78 vitest tests compare implemented exports against `@nockbox/iris-wasm` as the oracle. See [roadmap.md](./roadmap.md) for coverage detail.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -317,7 +317,7 @@ Types: `OutputNoteData`, `SimpleSpendLockOptions`
|
|
|
317
317
|
Use wasm when you need an oracle or APIs not yet ported. Rose-ts can verify txs wasm builds:
|
|
318
318
|
|
|
319
319
|
```typescript
|
|
320
|
-
import init, { TxBuilder as WasmTxBuilder, rawTxFromProtobuf } from "@
|
|
320
|
+
import init, { TxBuilder as WasmTxBuilder, rawTxFromProtobuf } from "@nockbox/iris-wasm";
|
|
321
321
|
import { TxBuilder, nockchainTxToRawTx, rawTxV1CalcId } from "@nockchain/rose-ts";
|
|
322
322
|
|
|
323
323
|
await init();
|
|
@@ -336,7 +336,7 @@ Migrate incrementally: keep wasm for exotic noun codecs; use rose-ts for bundler
|
|
|
336
336
|
```bash
|
|
337
337
|
npm install
|
|
338
338
|
npm run build
|
|
339
|
-
npm test # 78 parity tests (requires @
|
|
339
|
+
npm test # 78 parity tests (requires @nockbox/iris-wasm devDep)
|
|
340
340
|
npm run test:watch
|
|
341
341
|
```
|
|
342
342
|
|
|
@@ -351,7 +351,8 @@ npm run test:watch
|
|
|
351
351
|
|
|
352
352
|
MIT License
|
|
353
353
|
|
|
354
|
-
Copyright (c) 2026
|
|
354
|
+
Copyright (c) 2026 nocktoshi <nocktoshi@nockchain.net>
|
|
355
|
+
|
|
355
356
|
Copyright (c) 2025 NockBox inc. <tech@nockbox.org>
|
|
356
357
|
|
|
357
358
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -370,4 +371,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
370
371
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
371
372
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
372
373
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
373
|
-
SOFTWARE.
|
|
374
|
+
SOFTWARE.
|