@inversealtruism/csd-codec 0.1.0 → 0.1.2

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.
Files changed (2) hide show
  1. package/README.md +11 -0
  2. package/package.json +4 -3
package/README.md ADDED
@@ -0,0 +1,11 @@
1
+ # @inversealtruism/csd-codec
2
+
3
+ bincode codec (serialize/deserialize), txid, sighash (CSD_SIG_V1), header serialize/hash, compact-bits↔target, merkle proofs, content-addressing. Byte-identical to the Rust node (golden-vector + live-chain gated).
4
+
5
+ Part of the [Compute Substrate SDK](https://github.com/InverseAltruism/csd-sdk) (L0). Zero `Buffer` — runs in Node, browsers, and MV3 service workers. Deps: `@noble/*` only.
6
+
7
+ ```
8
+ npm i @inversealtruism/csd-codec
9
+ ```
10
+
11
+ See the [repo README](https://github.com/InverseAltruism/csd-sdk#readme) and [examples/quickstart.mjs](https://github.com/InverseAltruism/csd-sdk/blob/master/examples/quickstart.mjs) for usage. MIT.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inversealtruism/csd-codec",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Compute Substrate consensus codec — bincode (fixint-LE) serialize/deserialize, txid, sighash (CSD_SIG_V1), header serialize/hash, compact-bits→target, merkle. Byte-identical to the Rust node (golden-vector-gated).",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -15,13 +15,14 @@
15
15
  },
16
16
  "files": [
17
17
  "dist",
18
- "LICENSE"
18
+ "LICENSE",
19
+ "README.md"
19
20
  ],
20
21
  "dependencies": {
21
22
  "@noble/hashes": "1.8.0"
22
23
  },
23
24
  "devDependencies": {
24
- "@inversealtruism/csd-vectors": "0.1.0"
25
+ "@inversealtruism/csd-vectors": "0.1.2"
25
26
  },
26
27
  "license": "MIT",
27
28
  "sideEffects": false,