Skip to content

docs: describe the ledger node, client and API - #267

Merged
rvolosatovs merged 1 commit into
mainfrom
roman/ledger/docs
Oct 21, 2026
Merged

rvolosatovs merged 1 commit into
mainfrom
roman/ledger/docs

Conversation

@rvolosatovs

@rvolosatovs rvolosatovs commented Oct 20, 2026 •

Copy link
Copy Markdown
Contributor

Add docs/ledger.md, a usage-focused page for the development ledger:

  • a quick start that compiles the require_hash_preimage example, runs a
    node with a genesis output created by create-hash 42, and spends it with
    consume-hash, first with a wrong preimage (traps, nothing submitted) and
    then with the right one;
  • starstream node flags and the genesis TOML format;
  • the starstream ledger client commands, including the account, admin,
    block get and network queries from ledger: query accounts, admin, network and blocks #271;
  • the ledger model: digests, accounts, nonces, UTXOs and blocks;
  • the HTTP API: POST /rpc (COSE envelopes and wRPC queries against
    ledger.wit, plus UTXO method calls), GET /rpc (ledger and per-UTXO WIT,
    from ledger: serve RPC WIT on /rpc #262), GET /contracts/<digest>, GET /transactions/<digest>, the
    envelope format and the error status codes.

A warning near the top says this is not a secure ledger: only genesis outputs
need authorization, proofs are not checked, and state lives in memory.

docs/cli.md now has a short starstream node / starstream ledger section
that links to the new page.

@rvolosatovs rvolosatovs changed the title docs: describe the ledger node, API and CLI docs: describe the ledger node, client and API Oct 20, 2026
@rvolosatovs rvolosatovs mentioned this pull request Oct 20, 2026
Add a usage-focused page for the development ledger: a quick start that
runs a node with a genesis output of the `require_hash_preimage` example
and spends it with a wrong and then the right preimage; node flags and
the genesis file; the client commands; the digest, account, nonce, UTXO
and block model; and a reference of `POST`/`GET /rpc`, the contract and
transaction endpoints, and the COSE envelope format.

State up front that only genesis outputs need authorization and proofs
are not checked, so this is not a secure ledger.

Point `docs/cli.md` at the new page for `starstream node` and
`starstream ledger`.

Assisted-by: anthropic:claude-opus-5-5
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@rvolosatovs
rvolosatovs marked this pull request as ready for review October 21, 2026 17:40

@SpaceManiac SpaceManiac left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems OK

@rvolosatovs
rvolosatovs merged commit 6cb0e28 into main Oct 21, 2026
5 checks passed
@rvolosatovs
rvolosatovs deleted the roman/ledger/docs branch October 21, 2026 23:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants