Liking cljdoc? Tell your friends :D

skuld.join

Stake-derived Tendermint identities and verified bootstrap from a chain's trusted genesis.

Stake-derived Tendermint identities and verified bootstrap from a chain's trusted genesis.
raw docstring

bootstrap!clj

(bootstrap! driver wal options {:keys [cursor digest]} fetch apply!)

Replay up to a trusted {:cursor n :digest hex} checkpoint into an exclusive fresh genesis ledger and unused WAL. fetch returns {:proposal ... :certificate ...} by height. apply! is the same finalized-proposal handler used live and advances driver. Use disposable staging for both stores until this returns. Never bootstrap a key previously used to vote from an empty WAL.

Replay up to a trusted {:cursor n :digest hex} checkpoint into an exclusive fresh genesis
ledger and unused WAL. fetch returns {:proposal ... :certificate ...} by height.
apply! is the same finalized-proposal handler used live and advances driver.
Use disposable staging for both stores until this returns. Never bootstrap
a key previously used to vote from an empty WAL.
sourceraw docstring

history-digestclj

(history-digest chain previous {:keys [height id]})

Extend a public checkpoint over ordered finalized proposal IDs. Start with nil.

Extend a public checkpoint over ordered finalized proposal IDs. Start with nil.
sourceraw docstring

http-historyclj

(http-history base-url)

Read archived CBOR {proposal, certificate} records from base-url/<height>. The URL locates data. bootstrap! authenticates its contents.

Read archived CBOR {proposal, certificate} records from base-url/<height>.
The URL locates data. bootstrap! authenticates its contents.
sourceraw docstring

max-history-bytesclj

source

node-optionsclj

(node-options driver genesis-powers peer private-key valid-payload?)

Build transport and vote authentication from this replica's finalized stake. driver is an atom holding the output of consensus/driver and consensus/apply!. genesis-powers comes from the independently pinned chain genesis. Supply a durable private WAL, a network, and the application's proposal/finalize handlers.

Build transport and vote authentication from this replica's finalized stake.
driver is an atom holding the output of consensus/driver and consensus/apply!.
genesis-powers comes from the independently pinned chain genesis. Supply a
durable private WAL, a network, and the application's proposal/finalize handlers.
sourceraw docstring

proposal-framesclj

(proposal-frames {:keys [txs]})

Decode the canonical base64url envelope vector used in permissionless proposals.

Decode the canonical base64url envelope vector used in permissionless proposals.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
←Move to previous article
→Move to next article
Ctrl+/Jump to the search field
× close