Shekyl Stats

Refreshing...

Network

Connected

Chain

Height
—
Network Height
—
Top Block Hash
--
Block Spacing
--

Rewards

Reward
--
Difficulty
--
Hash Rate
--

Supply

Circulating Supply
--
Remaining Supply
--
Burn Total
--

Economics

Emission Multiplier
--
Burn
--
Economy Fee
--
Standard Fee
--
High Fee
--

Staking

Stake Share
--

Protocol

Transaction Format
TransactionV3
Membership Proof
FCMP++
Spend Auth
Ed25519 + ML-DSA-65
Confidentiality
Stealth + BP+

Node

Pool Count
--
Data Size
--
Revision
--
Sync Status
Syncing
All Documentation

Releasing

Release process, tagging, and binary distribution procedures.

Releasing Shekyl

This document describes how to create a new Shekyl release.

Prerequisites

  • Push access to Shekyl-Foundation/shekyl-core
  • All CI checks passing on dev
  • Physical possession of the Shekyl Foundation release-signing hardware token (OpenPGP applet holding signing subkey 6914D74823DDA8DC) and its Signature PIN. See docs/SIGNING.md for full key material and the signing ceremony.

Build Dependencies

The CI workflows install all dependencies automatically. For local builds:

  • Rust toolchain: the channel rust/rust-toolchain.toml pins, via rustup
  • C compiler: GCC or Clang, for the crates whose build scripts compile C (ring)
  • contrib/depends for a release host; README.md, "Cross Compiling", lists each host's packages

Branch Strategy

  • dev -- continuous development and staging branch. All feature work, bug fixes, and CI improvements land here first.
  • main -- protected release branch. Only receives merge commits from dev at release time. Tags are always created on main.

Creating a Release

Early in the cut week: the alpha resync. Until the full wallet adjustment lands, every cut resyncs the GUI wallet with the core it ships beside, once per cut. Dispatch gitian.yml with package_dry_run from dev, with the head commit as tag, never from a tag ref: the publish step keys on the ref, not the event, so a dispatch from a tag publishes. Then the GUI's release dry run runs against that run id. The GUI repository's docs/design/GUI_SYNC_LANE.md §7 ("Alpha resync") is the sequence, and the GUI is tagged beside this release. Run both again at the freeze. The CLI's half is in this tree: its daemon calls are typed and its --json is the wire's reply, so the sweep checks only its human lines' words against docs/design/HEIGHT_SEMANTICS.md §1.

  1. Prepare the changelog on dev. Until the cut, each pull request's entry is a file of its own under docs/changelog.d/ (its README.md says why). The cut is one commit, on a branch off dev, merged by pull request:

    1. List the entries, newest merge first, from the repository root of the cut branch before any edit:

      git fetch origin
      git log origin/dev --first-parent --diff-filter=A --name-only --format= \
        -- docs/changelog.d/ | awk 'NF && !seen[$0]++' \
        | while read -r f; do
            if [ -f "$f" ] && [ "${f##*/}" != README.md ]; then echo "$f"; fi
          done
      

      The history also names entries an earlier cut deleted, and the README, which is always its oldest name. The if skips them and keeps the listing's exit status 0, so it runs under set -e.

      Its count must equal find docs/changelog.d -type f ! -name README.md | wc -l. A file the list misses was added outside dev's first-parent history. Place it by hand, then go on.

    2. In docs/CHANGELOG.md, rename ## [Unreleased] to ## [X.Y.Z] - YYYY-MM-DD and put each file's bullets, in that order, at the top of its ### Changes, above any already there. Add a fresh empty ## [Unreleased] section above it.

    3. git rm the listed files. The README stays.

  2. Promote dev to main by pull request, titled Release: vX.Y.Z, and merge it with GitHub's Create a merge commit — never squash, rebase or fast-forward. The merge commit preserves branch topology and is the release boundary. RELEASE_PROMOTION.md §4 is the full sequence, including the pre-flight on the frozen SHA; this pull request is also the first full build and test run on it. (git merge --no-ff dev on a local main produces the same commit, but main is protected and takes it through the pull request.)

  3. Tag the release on main with the Foundation institutional signing key, following the ceremony in docs/SIGNING.md (§"Release-tag signing ceremony"). cargo xtask derives the version from the tag (rust/xtask/src/version.rs), so no file is edited. A commit is a release only when one tag matches ^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-[0-9A-Za-z.]+)?$ in full, and two matching tags on one commit are refused.

    Version symbols: cargo xtask sets SHEKYL_VERSION_FULL, SHEKYL_RELEASE_NAME and SHEKYL_VERSION_IS_RELEASE, and rust/shekyl-version reads them at compile time.

    Summary of the ceremony (see SIGNING.md for full checks and failure modes — this is a summary, not a substitute):

    # YubiKey inserted, then warm the GPG agent — DO NOT SKIP.
    # Without this, the first signing attempt fails with a
    # misleading "No secret key" error even when the card is plugged in.
    gpg --card-status
    
    # The merge happened on the remote. Fetch, and tag the merge commit by
    # name: a local main, or an origin/main from before the fetch, is the
    # previous release.
    git fetch origin
    
    # Sign with the Foundation release-signing subkey explicitly.
    # -u overrides git config user.signingkey for this single command,
    # so your personal commit-signing key stays configured for normal work.
    git tag -u 6914D74823DDA8DC -a -s v3.0.3-rc.1 origin/main -m "Shekyl v3.0.3-rc.1"
    
    # Verify BEFORE pushing. A wrong signer can still be undone locally.
    git verify-tag v3.0.3-rc.1
    # Expected: "Good signature from 'Shekyl Foundation (Release Signing Key) ...'"
    # Expected: Primary key fingerprint F5F7 5A47 70C9 4FE1 D5A5 AE59 844E 424F 9866 4F44
    

    For pre-releases use a suffix: v3.0.3-rc.1, v3.1.0-alpha.5, v3.1.0-beta.1, etc.

  4. Push the tag. CI triggers on tag push. main is already on the remote, because the merge happened there:

    git merge-base --is-ancestor v3.0.3-rc.1 origin/main && git push origin v3.0.3-rc.1
    

    Important: The tag must point to a commit that is already on the remote's main branch.

  5. (Optional) Bump the dev default -- after tagging, update [version] default in rust/xtask/matrix.toml and [workspace.package] version in rust/Cargo.toml to the next planned version so that development builds show the correct series.

  6. dev is not synced with main. The promotion is a non-fast-forward merge, so dev's history is unchanged and work continues on it; no sync step is needed (.cursor/rules/06-branching.mdc, release flow step 6). A reverse-merge pull request from main into dev is not part of the flow. While dev has not moved since the freeze it can be fast-forwarded to the release merge commit, which keeps git log origin/main ^origin/dev empty; v3.1.0-alpha.8 and v3.1.0-alpha.9 did that. It is optional, and once dev has moved it is not done.

  7. GitHub Actions takes over. The gitian workflow automatically:

    • Builds reproducible, deterministic binaries for Linux (x86_64, aarch64), Windows x64, macOS (x86_64, aarch64), and FreeBSD x86_64 inside isolated Docker containers
    • Packages Linux x86_64 and aarch64 binaries as .deb and .rpm
    • Builds a Windows NSIS installer (.exe)
    • Creates a source archive with all submodules
    • Generates SHA256SUMS for all artifacts
    • Publishes everything as a GitHub Release
  8. Verify the release at https://github.com/Shekyl-Foundation/shekyl-core/releases

  9. Sign the asset manifest. The release job publishes an unsigned SHA256SUMS. With the token inserted, run the manifest ceremony (docs/SIGNING.md §"Release assets"):

    python3 scripts/release/sign_release_assets.py vX.Y.Z --download --upload --clobber
    

    Until this has run, a downloader can check hashes but not who published them.

Tag Naming

  • Release tags: v3.1.0, v3.2.0, v4.0.0
  • Pre-release tags, in the canonical form docs/VERSIONING.md defines: v3.1.0-alpha.9, v3.1.0-beta.1, v3.1.0-rc.1
  • The release job marks a tag as a pre-release when it matches the pre-release grammar (docs/RELEASE_PROMOTION.md §3), the same test the fn-dsa genesis gate uses. New tags use rc; the older -RC1 spelling stays recognised, in exactly that case.

Release Artifacts

Each release produces these files. Gitian builds them all. The Linux, macOS and FreeBSD archives are byte-reproducible; the Windows archive is not yet (docs/FOLLOWUPS.md):

FileDescription
shekyl-x86_64-linux-gnu-vX.Y.Z.tar.bz2Linux x86_64 binaries
shekyl-aarch64-linux-gnu-vX.Y.Z.tar.bz2Linux ARM64 binaries
shekyl_X.Y.Z_amd64.debDebian/Ubuntu x86_64 package with systemd unit
shekyl_X.Y.Z_arm64.debDebian/Ubuntu ARM64 package with systemd unit
shekyl-X.Y.Z-1.x86_64.rpmRPM x86_64 package for Fedora/RHEL/SUSE
shekyl-X.Y.Z-1.aarch64.rpmRPM ARM64 package for Fedora/RHEL/SUSE
shekyl-x86_64-w64-mingw32-vX.Y.Z.zipWindows x64 binaries (portable zip)
shekyl-vX.Y.Z-win-x64-setup.exeWindows installer (NSIS)
shekyl-x86_64-apple-darwin11-vX.Y.Z.tar.bz2macOS Intel binaries
shekyl-aarch64-apple-darwin11-vX.Y.Z.tar.bz2macOS Apple Silicon binaries
shekyl-x86_64-unknown-freebsd-vX.Y.Z.tar.bz2FreeBSD x86_64 binaries
shekyl-vX.Y.Z-source.tar.gzComplete source with submodules
SHA256SUMSChecksums for all artifacts
SHA256SUMS.ascDetached signature over SHA256SUMS, added by the manifest ceremony (step 9)

RISC-V 64-bit is switched off in the Gitian Linux build (see "Future Platforms"); nothing is produced for it.

Linux Package Details

The .deb and .rpm packages are available for both x86_64 and ARM64. Both packages, the same way:

  • Install shekyld, shekyl-cli, shekyl-wallet-rpc and shekyl-rpc-tunnel to /usr/local/bin/ and the pinned Tor under /opt/shekyl/
  • Install the template [email protected] (one instance per network: shekyld@testnet), shekyl.slice and the tunnel's unit under /lib/systemd/system/; the tunnel's is not enabled
  • Ship each public network's settings file under /usr/share/shekyl/ and copy it to /etc/shekyl/shekyld-<network>.toml, root:shekyl 0640, when none is there; an upgrade never overwrites one (IG-Q64)
  • Declare the daemon's and the tunnel's accounts and their configuration directories (INPUT_GRAMMAR.md IG-Q64; RPC_CHANNEL.md §8): /usr/lib/sysusers.d/shekyl.conf, the system accounts shekyl and shekyl-tunnel with no home and no login shell, and /usr/lib/tmpfiles.d/shekyl.conf, /etc/shekyl as root:shekyl 0750 and /etc/shekyl-tunnel as root:shekyl-tunnel 0750. post-install.sh applies both
  • Refuse to install, before any file is unpacked, when an account or group named shekyl or shekyl-tunnel already exists and is a login (a shell, an administrators' group, a sudo rule) or another account's group (pre-install.sh). The service would run with that login's rights. The refusal names the rename that frees the name
  • Do not enable, start or restart the daemon. Set what you need in /etc/shekyl/shekyld-<network>.toml, then run sudo systemctl enable --now shekyld@<network>; after an upgrade, sudo systemctl restart shekyld@<network>. The unit checks the file (--config-verify, as the daemon's account) before every start
  • On removal, stop and disable every instance and keep the account, /etc/shekyl and the chain data. Purging the .deb also removes the per-network settings files and then /etc/shekyl if it is empty; the .rpm has no purge and keeps them
  • Data directory: /var/lib/shekyl/<network> (the instance's StateDirectory)
  • Log: /var/log/shekyl/<network>/shekyld.log

Windows Installer Details

The NSIS installer:

  • Installs shekyld.exe, shekyl-rpc-tunnel.exe and shekyld.example.toml (the settings reference, every option commented out) to Program Files\Shekyl, and the pinned Tor in tor\ beside them, where the daemon looks for it on Windows; the package job checks that Tor against its pin. Windows ships no shekyl-cli or shekyl-wallet-rpc
  • Optionally adds to system PATH
  • Creates Start Menu shortcuts for the daemon and the uninstaller
  • Registers a standard Windows uninstaller
  • Does not install a service: on Windows the daemon runs as the user until RT-W14

Gitian Deterministic Builds

The gitian workflow is the sole release pipeline. It runs automatically on every tag push and produces reproducible builds for all platforms, then packages and publishes the GitHub Release. It can also be triggered manually via the GitHub Actions UI (workflow_dispatch), which allows overriding the tag and repository URL -- useful for testing against a fork.

The pipeline has two phases:

  1. Build -- 4 parallel Gitian jobs (Linux, Windows, macOS, FreeBSD) produce deterministic tarballs inside isolated Docker containers.
  2. Package & Publish -- a lightweight job downloads the Gitian artifacts, creates .deb/.rpm packages and a Windows NSIS installer from the pre-built binaries, generates a source archive and SHA256SUMS, then publishes the GitHub Release.

Each Gitian build descriptor installs the Rust toolchain via rustup, pinned to the workspace toolchain (--default-toolchain 1.94.0, kept in lockstep with rust/rust-toolchain.toml) with the minimal profile and the appropriate cross-compilation targets (aarch64 for Linux; 64-bit MinGW for Windows; Darwin targets for macOS). The pin is installed once, up front, so no build step installs a toolchain of its own. The minimal profile omits clippy and rustfmt: a release build compiles, it never lints. 32-bit targets were permanently retired in v3.1.0-alpha.5 (Chore #3) on PQC constant-time grounds — see docs/CHANGELOG.md entry "Retired 32-bit build targets".

Re-running a Failed Gitian Build

If a tag needs to be moved (e.g. to include a last-minute fix):

git tag -d v3.0.3-rc.1                              # delete local
git push origin :refs/tags/v3.0.3-rc.1               # delete remote
git fetch origin                                    # the fix reached main by pull request
gpg --card-status                                   # warm the agent
git tag -u 6914D74823DDA8DC -a -s v3.0.3-rc.1 origin/main \
  -m "Shekyl v3.0.3-rc.1"                           # recreate on the new merge commit, signed
git verify-tag v3.0.3-rc.1                           # MUST pass before pushing
git push origin v3.0.3-rc.1

Re-tagging goes through the same signing ceremony as a fresh release; docs/SIGNING.md §"Release-tag signing ceremony" is the full procedure.

Or trigger manually from the Actions tab without retagging.

Testing Against a Fork

# From the Actions tab, use "Run workflow" with:
#   tag: v3.0.3-rc.1
#   repo_url: https://github.com/youruser/shekyl-core

Future Platforms

  • macOS .dmg installer -- native disk image with drag-to-Applications UX.
  • Linux AppImage -- single-file portable binary for desktop distributions.
  • RISC-V 64-bit is switched off in the Gitian descriptor (Rick, 2026-10-24): the constant-time record (docs/design/CRYPTO_AUDIT.md §1) cannot cover a target with no BINSEC decoder and no board, so it is not shipped until a user asks for it and there is a way to measure it. Restoration is three edits: put riscv64-linux-gnu back on HOSTS in contrib/gitian/gitian-linux.yml, add its row to rust/xtask/matrix.toml, and drop "switched_off" from its row in config/tor_pins.json. The apt toolchain stays. A plain cargo build is still possible while it is off; cargo xtask refuses a host the matrix does not list. 32-bit platforms are permanently out of scope on security grounds — see docs/CHANGELOG.md entry "Retired 32-bit build targets".