@inversealtruism/csd-codec
v0.1.5
Published
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).
Readme
@inversealtruism/csd-codec
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).
Part of the Compute Substrate SDK (L0). Zero Buffer — runs in Node, browsers, and MV3 service workers. Deps: @noble/* only.
npm i @inversealtruism/csd-codecSee the repo README and examples/quickstart.mjs for usage. MIT.
