zakurad on Arctic

Status: on Arctic.

zakurad is the Styx node. Arctic has two kinds of node:

  • A verifier syncs from the operator over P2P and checks every block and transaction against the full consensus rules, the operator's block signature included. It never produces blocks, and it doesn't need to trust the operator's RPC answers. The release's verifier.toml configures one.
  • The operator produces Arctic's blocks.

Every node shares one network table, and that table is the chain's identity: keep it identical on every node, apart from the paths of the genesis and checkpoint files.

Running a verifier

  1. Unpack the release (Getting started). Its verifier.toml holds Arctic's network table, with the block signer's public key and the lockbox address filled in.

  2. Put genesis.hex and checkpoints.txt somewhere permanent, and write their absolute paths in verifier.toml, at genesis_block and checkpoints.

  3. Write the operator's P2P address in initial_testnet_peers.

  4. Start the node:

    zakurad -c verifier.toml start
    

The node syncs the blocks the checkpoint list names by their hashes, validates every block above the last one in full, and follows the operator's tip. It rejects any block not signed by block_signer.

Ports

ListenerAs shipped
P2P0.0.0.0:18333
RPC127.0.0.1:18332 on a verifier, cookie-authenticated, as zakurad's default is. On the operator, the public listener, with TLS and without a cookie.
Admin RPCoperator only: 127.0.0.1:18331, every method, cookie-authenticated, loopback only

On a network with a block signer, the public RPC listener doesn't offer getblocktemplate, submitblock or submitsolution.

A cookie-authenticated listener closes the connection on a call without the node's cookie. The node writes the cookie to .cookie in rpc.cookie_dir, by default the zakura folder of the cache directory of the user it runs as. The arctic CLI sends it with --rpc-cookie (The wallet).

Settings the default config leaves out

The generated default configuration doesn't list these. Arctic's configs set the ones they need.

SettingWhat it does
mining.block_interval_secondsOn a network with a block signer, produce and sign a block this often. Unset, the node produces none.
mining.block_signing_key_fileThe file holding the ed25519 secret key that signs produced blocks. Its public key must be the network's block_signer.
mining.block_max_weightThe largest weight of the block templates this node builds. Unset, the consensus limit; a larger value is capped at it.
rpc.admin_listen_addrA loopback listener with every method, cookie-authenticated, in plaintext.
rpc.tlsTLS for the main RPC listener: a certificate chain and its key.

The operator

Arctic has one operator. Only the holder of the block signer's key can extend Arctic, and that key's file must be readable only by the node's user.