lib

Core libraries for Radroots
git clone https://radroots.dev/git/lib.git
Log | Files | Refs | README

README.md (1828B)


      1 # Independent protocol fixture producer
      2 
      3 This optional development tool uses pinned NostrTools/Noble implementations to
      4 produce deterministic synthetic NIP-44/NIP-59 fixtures independently of the Rust
      5 implementation. The lockfile records the exact full npm dependency closure and
      6 tarball integrity. No upstream implementation is copied into Radroots source.
      7 NostrTools is Unlicense; the remaining locked packages declare MIT. Provenance
      8 records the primary source identity and license equality.
      9 The unused transitive `nostr-wasm` package omits license text from its pinned
     10 source tree and tarball. Its MIT declaration matches the primary manifest and
     11 npm metadata; this is recorded explicitly without claiming redistribution
     12 qualification. The producer imports only the pure/NIP44 entrypoints, and no
     13 Node dependency is vendored or redistributed in Rust packages or artifacts.
     14 
     15 From the Lib root, route installation and production through extbuild:
     16 
     17 ```sh
     18 cargo extbuild run -- npm ci --prefix tools/protocol_oracle --ignore-scripts --no-audit --no-fund
     19 cargo extbuild run -- node tools/protocol_oracle/commerce_envelopes.mjs --write
     20 cargo extbuild run -- node tools/protocol_oracle/commerce_envelopes.mjs --check
     21 ```
     22 
     23 The producer first matches the retained published NIP-44 reference vector.
     24 Complete records come from the independent canonical record fixture. It creates
     25 peer and self copies for all19 families, independently solves exact full-size
     26 bounds and constructs nested corruption and unsupported-profile cases.
     27 
     28 All private scalars, nonces, auxiliary bytes and timestamps are public synthetic
     29 test inputs. Determinism supplies no production entropy or custody claim.
     30 Rust runtime and standalone tests consume only checked-in fixture data; they
     31 need neither Node, npm, a network connection nor the parent repository.