devchain

command
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 28 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command devchain is a local stand-in chain for trying bstore without a node, a settlement service or any coin: it serves a node's JSON-RPC (generatetoaddress, sendrawtransaction, getinfo) at /rpc, a node's asset API under /api/v1/, and a header source (/v1/root/<height>, /v1/tip) that the bstore commands, the providers and the overlay hosts check proofs against. Every transaction it accepts is mined at once, in a block of its own.

It is bcommon's testchain package served over HTTP. It checks what it is sent the way a node would (inputs exist and are unspent, coinbase is mature, scripts verify, nothing non-final is mined) but it has no proof of work and no peers: its proofs mean nothing outside it, and nothing it mines is money. It is for a laptop, never for a network.

With -journal FILE every accepted RPC call is appended to FILE and replayed at the next start, so the chain survives a restart with the same blocks, and the hosts' and the homes' state still matches it.

`devchain certs -dir DIR -names a,b` writes a throwaway certificate authority and a server certificate for each name, and exits: a provider's advertised URL must be https, so a laptop needs one. The CA's key is not kept. Never for a network.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL