Shekyl FoundationAutomated
11/7/2026, 4:21:57 AM
State of dev as of 60740ba05fa3, 6 November 2026.
In these three days the daemon became a Rust program from its first instruction to its last, and every network got its own identity, which every signature now commits to. Most of the rest of the window was deletion.
The daemon no longer contains any C++ — LANDED
Until this window, shekyld still carried about 5,800 lines of inherited C++ on its peer-to-peer path. By then they made no decisions of their own: every judgement about a peer or a message was already made in Rust. But the C++ still owned the sockets' event loop, the timers, and four messages: the handshake, the periodic sync between connected peers, transaction relay, and the reply that fills in transactions a peer is missing. Rust code reached all of this through a layer of glue whose only job was to let C++ call it. That layer was a second architecture inside the first. Every change to peer handling had to be made in two languages and kept consistent across the boundary between them.
The work landed in three steps. First, chain sync moved to its Rust owner. Next, shekyld became a Rust binary that still linked the remaining C++ as a library. Finally, the remaining C++ was replaced and deleted. The new structure has a strict order of layers. Connectors own sockets. A session layer owns each connection's protocol state. Each message type has exactly one owner, named in a single table that must list every command, so an unhandled command is a compile error, not something that quietly falls through. A peer that has not finished its handshake cannot deliver anything else, and this is enforced by the types: code that handles a message cannot be called without proof of a completed handshake. Each connection reads its next message only after the previous one has been taken, so a slow consumer slows that one peer down and does not grow the node's memory.
The deleted code includes the C++ peer-to-peer host, the protocol handler, the core, the daemon entry point, the C++ RPC server, the inherited message framing library, and the build bridge that let CMake link Rust and C++ into one binary. The release archives now carry Rust binaries only.
For someone running a node, the wire format is unchanged: every message is sent and accepted byte for byte as before. Logs from the peer-to-peer layer now appear under the Rust module names instead of the old net.p2p category. The process also hardens itself before it reads its first argument. Core dumps are off, and on Linux and FreeBSD no non-root process can attach a debugger to it.
A network is its genesis block — LANDED
Shekyl has four networks: mainnet, testnet, stagenet, and regtest, the local test network developers use to mine blocks on demand. Until this window, several mechanisms each identified a network partially, and they disagreed about regtest. Regtest borrowed mainnet's genesis block, address prefixes and ports, and its handshake identifier was mainnet's. A regtest node could read its own network three different ways depending on which part of the code was asking. The network was also encoded as six different numeric codes in different places.
The rule now is that a network is its genesis block. One table in Rust holds every network: its name, its genesis, its address prefixes, its ports, and the development options it allows. Every genesis block is built by the same tool through the same path. A network's name is mixed into the derivation of its genesis transaction's key, so genesis commits to the name without a special field. The genesis header's nonce, which earlier chains in this lineage used to tell networks apart, is now zero everywhere. It is a proof-of-work field, and a block that is not mined has no work to record. Regtest is now an ordinary row in that table, with its own genesis and its own addresses. Code no longer branches on which network it is running on: every network-specific difference is data in its row.
We also ruled out one alternative for good: changing a test network's genesis to stop old builds from connecting after a rule change. That uses identity to solve a compatibility problem. A network's genesis is now fixed for its life. Compatibility will instead be checked at the handshake, where each side states which rules it enforces and peers that disagree refuse each other with a reason, without banning. That design is ruled; the check itself is not built yet and is IN FLIGHT.
For testers: testnet and stagenet have new genesis blocks, so an existing store for either is refused as belonging to another network and has to be resynced. Wallet keys are now derived under the network's name, so the same 24 recovery words give different addresses than they did before this change. A wallet file from an earlier build is refused with a reason. Restore it from its words.
Every signature now belongs to exactly one network — LANDED
Once networks have distinct identities, the next question is whether a signature made on one could be replayed on another. Before this window, a transaction's signatures did not include the network at all. They were kept apart in practice because the chains' states differed, which is not something to rely on. Message signing and some wallet proofs separated networks by a small numeric code that had no connection to the genesis.
Every signature, proof and commitment that needs to be tied to one network now builds its message through a single framing function. That function hashes the network's 16-byte identifier at a fixed position at the start, followed by each field with its length. A transaction now has exactly one network-bound message, and every authorization of it signs or proves over that message: the membership proofs, multisig, and each input's post-quantum hybrid signature. A transaction built for testnet does not verify on mainnet, by construction. Nothing extra goes on the wire, because the binding is hashed, never carried.
There is one subtlety. Keys and addresses exist before any genesis block does: genesis pays addresses, so addresses cannot depend on genesis. Anything derived from keys is therefore bound to the network's name, and anything signed or proved against the chain is bound to its genesis-derived identifier. The two are tied together because genesis commits to the name. To keep this from drifting, every entry in the project's register of cryptographic domains now declares how it is bound, and a test checks each declaration against the code.
Wallet users will notice two things. A signed message or a transaction or reserve proof made by an earlier build has to be made again. A multisig group's fingerprint string has changed, so participants should compare it again.
Why signatures bind the network but not the rule set — RULED
A further step was considered and ruled against: binding every signature to the set of consensus rules in force, as some other chains do. The question deserved a real answer, because the usual objection does not hold. A scheduled rule set is already consensus, so binding to it gives no one extra control.
What that binding buys is protection between the two sides of a chain split that share a genesis block, so a transaction on one side cannot be replayed on the other. That situation only exists after a contested fork, and the protection is only needed by the side that chooses to split. That side can add it when it splits, by changing one domain string and its network-identifier derivation.
The costs, on the other hand, would fall on everyone, forever. A signature bound to a rule set dies the block the next rule set activates, so every transaction not yet in a block would have to be signed again at every upgrade. With hybrid post-quantum signatures that is slow and large, and for a multisig group it means a fresh signing ceremony. Wallets would also need to know which rules will be in force when a transaction is included, not just when it is signed. And the binding would reveal which rule period a transaction was signed in, which is one more fact about the user than the chain needs.
A fresh node no longer claims to be synchronized before it has looked — LANDED
With chain sync moved to Rust, a node's sync state now follows one rule on every network. Before, regtest started out "synchronized" and the other networks did not, through separate code paths.
The node now reads what the operator has declared about its network. If peer connections are switched off, or it is limited to a fixed peer list and none of those peers is up, the node is on its own: it is synchronized by definition and can mine. On an open network it reports that it has no view of the chain until its first peers have answered, or until the first header deadline has passed. Until then it does not call itself synchronized, relay blocks it mined, or offer work to miners. A node coming up for the first time can no longer mine on a chain it has not compared with anyone else's.
Two related changes landed. Four obsolete sync messages from the inherited protocol were retired, and a peer that sends one is refused. Because of this, a node built from dev and an alpha.11 node will not sync with each other. Also, if chain sync stops for any reason, the daemon now logs the cause and exits with a failure. Before, it stayed up and quietly stopped following the chain.
The daemon's console moves into shekyl-cli — LANDED
There used to be two ways to talk to a running node: commands typed into shekyld itself, and the wallet CLI. shekyld now takes options only, and an unexpected command word on its command line is refused. The node's commands are now shekyl-cli commands: chain height, status, stop, pool, peers, bans, options and mining. None of them needs an open wallet.
Before any command runs, shekyl-cli checks the daemon's identity: its RPC version, its network, its consensus rules and its genesis block. If the daemon is on another network or another genesis, the command is refused and the error names what differs, so an operator cannot issue commands to the wrong node by mistake.
What else left — LANDED
cryptonote_config.h lost 41 constants that nothing read. They included old peer timeouts, data-file names, inherited fee rounding, and reward zones for protocol versions Shekyl never ran. A constant nobody reads still looks like a statement of current behaviour, and a reader grepping for a number will find it and believe it. Each one was checked against every source tree, build script and macro expansion before it was removed. Two were kept, because a Rust test still reads them from the header.
The inherited translation files also went: 14 MB of strings, nearly all for wallet code deleted months ago. Every C++ build had compiled them only so that a yes/no prompt could accept a translated "yes".
This post describes the state of the dev branch at 60740ba05fa3 on 6 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 #1237 (CS-5), PR #1254 (DC-Q19…Q24), PR #1259 (R8), PR #1264 (NI PR 1), PR #1266 (NI PR 2; NI-R2, NI-R5, NI-R17), PR #1267, PR #1272 (RC-Q1…Q6), PR #1280