Shekyl FoundationAutomated
11/7/2026, 4:10:30 AM • edited 11/7/2026, 4:17:49 AM
State of dev as of d93f9faba02b, 4 November 2026.
Most of this window went into one question, what makes a network a network, and into two firm refusals: the release will not choose the chain, and a peer will not get to decide who this node bans.
Every network is now one row in one table — LANDED
Shekyl runs four networks: mainnet, testnet, stagenet, and regtest, a private network for local testing. Until this window, which network a node was on was spread across several mechanisms. Genesis blocks lived as text in an inherited C++ header and were copied into Rust in more than one place. There were five separate network types in the code, and six different numeric encodings of the same idea. Regtest was not really a network at all: it borrowed mainnet's genesis, address prefixes and handshake identifier, and one regtest node could read its own network three different ways. When a test network quietly takes another network's identity, code that passes on that network has not exercised the path real users run.
All of that is now one table. Each network is one row: its name, its genesis block, address prefixes, ports, data directory, and the short list of development shortcuts it permits. Only regtest permits any, and a test checks that. The genesis blocks are built by the genesis tool from each network's own definition, and tests rebuild every one of them and compare it with the pinned hash. Regtest has its own genesis, its own address prefixes and its own ports, and shares no state with mainnet. The old genesis header constants, the "regtest is really mainnet" mappings, and the duplicated network types are deleted.
The genesis block's nonce used to tell networks apart: CryptoNote gave two networks different genesis hashes by changing a field that exists to carry proof-of-work. The nonce is now zero on every network. Each network's name instead goes into its genesis transaction key, so two networks cannot share a genesis even if they had identical recipients.
A network now has two forms. The name is fixed in the table and is used wherever no genesis exists yet: key derivation, address prefixes, and the genesis itself. The network id is a hash of the genesis block and is used everywhere after that. Three kinds of signature now commit to the id directly. A transaction's spend signature, a signed message, and an emission claim's authorisation are each valid on exactly one network by construction, not because two chains happen to differ. An audit classified every hashing and signing domain in the project's registry and found none that can be replayed from one network to another.
For anyone running a test node: testnet and stagenet have been rebuilt from new genesis blocks, so existing test-network data and wallets do not carry over.
Telling incompatible builds apart at the handshake, not by changing genesis — RULED
The table settles identity. Compatibility is a separate question: whether two builds agree on what a valid block is. The usual way to keep an incompatible test build off a test network is to rotate that network's genesis, so old and new builds never meet. That uses identity to solve a compatibility problem, and it was ruled out: a network's genesis is fixed for its life.
The ruled design is that the first encrypted handshake message carries each side's rule schedule, as a list of activation heights and digests of the rules in force from each one, along with the sender's tip height. The receiver compares every step up to the higher of the two tips. If they disagree, the connection is refused with a stated reason. Neither side bans the other or exchanges blocks. A peer that overstates its height only widens the range being compared. A rule change that has not activated yet does not cause a refusal, so a scheduled upgrade gives nodes time to upgrade rather than splitting the network the day a new build ships. The handshake work itself is IN FLIGHT.
A related question was whether transaction signatures should also commit to the rule set in force, as Zcash does. The answer was no. That binding protects one side of a contentious chain split, where both chains share a genesis, and the side that splits can add it then. Building it in from the start would make every signature depend on the upgrade schedule permanently. Any transaction still unconfirmed when an upgrade activated would have to be re-signed, which is costly with large post-quantum signatures and needs a fresh signing round for multisig. The signature would also reveal which rule window it was made in.
One seed format: 24 words, no passphrase — LANDED
A wallet's secret is now 32 bytes on every network, written as 24 BIP-39 words. Twelve-word phrases are not accepted, including on import: 128 bits gives 64 bits of security against a quantum search, which is below the post-quantum floor Shekyl holds itself to. The BIP-39 passphrase is gone too. Its stretching step is weak, and the wallet file already has its own encryption. The 24 words and the raw 32 bytes are two ways of writing the same secret, and they derive the same wallet. The network's name is part of the derivation, so the same seed on two networks gives unrelated keys.
Wallet files from the previous format are refused with a named error, not reinterpreted. The leftover C++ account code and the exports only it used are deleted with the old derivation.
The release pins genesis and nothing above it — RULED
Many chains ship checkpoints, block hashes at fixed heights coded into each release that nodes treat as unquestionable. They are convenient, but a coded checkpoint is the maintainers choosing the chain, and the Foundation ruled that Shekyl's releases carry none. The release pins each network's genesis block, which is part of what the network is. Above that, the chain with the most work wins. The fork-choice function now takes two cumulative difficulties and nothing else, and the checkpoint table, its rollback machinery and the rule that depended on it are deleted. No production behaviour changed, because every network's table already held only genesis.
That leaves one question: what a node should do when a reorganisation goes deeper than the window after which a wallet treats an output as spendable. The first version flagged the node as degraded until a resync. That was reversed within the window. A degraded node stops serving, so one legitimate deep reorganisation would have left every node that followed it degraded, and would have stopped serving across the network until each node resynced. A reorganisation that deep is now an event. The node follows the heavier chain, logs a warning, and keeps a record of the most recent one: its depth, the fork height, and the tips it left and joined. Nothing that decides whether the node is following reads that record. On the wallet side, the depth a wallet waits before calling a transfer final is the same lock window on every network, and can only be raised. Testnet previously used a shallower value than the chain enforced.
Peers no longer decide who gets banned — LANDED
The inherited peer-to-peer layer had an automatic ban. Peers built up a failure score from things like a refused handshake or certain chain-sync violations, and past a threshold their address was banned for a day. The trouble is that the score was fed by what arrived on the connection, and a parity problem between two honest nodes can make an honest peer appear to misbehave. A rule that converts observed misbehaviour into a ban lets someone else choose the node's ban list.
The automatic ban is deleted, along with the C++ ban interface, which nothing in production called. A misbehaving connection is still dropped every time; only the ban that followed is gone. The ban list now has one writer, the node's operator, through the existing RPC and ban file. New tests drive the real handshake and sync paths repeatedly from one host and check that the host is dropped each time and never banned. The C++ ban tests were ported to Rust before the code they covered was removed.
A store interrupted by power loss is finished, not refused — LANDED
If a node lost power while creating its chain or transaction-pool database for the first time, the next start found a half-written file and refused to open it. The fix had to recognise an interrupted creation without being fooled by something that only looks like one. One proposed version would have emptied any file whose first bytes were zero. That could have wiped a real store whose first sector a failing disk had zeroed.
What landed follows one rule: never destroy bytes the node cannot prove it wrote. A file counts as an unfinished creation only if it is empty, or no longer than a fresh initialisation writes with its header never completed. Such a file is moved aside under a new name, never deleted, and a fresh store is created. A lock file serialises two processes opening the same path. Anything else, including a zero-filled file or a store whose header was damaged, is refused and left exactly as it was, so an operator can inspect it. The storage engine was also updated to a version that recovers a crash during file growth.
This post describes the state of the dev branch at d93f9faba02b on 4 November 2026.
Shekyl is pre-genesis and under active design; anything marked IN FLIGHT may
change or be abandoned. Where a later post contradicts this one, the later post
is correct.
References: PR #1264, PR #1266, PR #1250, PR #1252, PR #1253; NI-R1–R12, NI-Q4, NI-Q9, NI-Q10, NI-F2, NI-F11; S1 (design review 2026-11-03), CEN-E2