Skip to main content
Engineering

How Rockpile verifies application updates

How Rockpile checks a downloaded release, blocks installation on verification failure, and checks the file again before installing.

A wallet update replaces software you rely on to review transactions and protect keys. That makes the update path part of the wallet’s security boundary.

A successful download establishes that a file arrived. It does not establish that the file is the intended release. Rockpile’s updater separates discovery, download, verification, and installation so those decisions cannot collapse into one automatic step.

Bind the download to the requested release

Packaged Rockpile builds carry their update-feed address and release-verification key inside the application. The feed must use HTTPS and pass the app’s URL checks. The packaged updater does not accept a replacement feed supplied through a launch-time environment variable.

When a download begins, the updater records the requested version. The download-complete event must identify that version and the file’s absolute path on disk. Missing events, conflicting versions, or duplicate artifact events make the operation fail instead of letting whichever event arrived last determine the file to install.

The file reported by the updater must belong to the download the user actually started.

Verify both the bytes and their release identity

Rockpile’s release design uses platform signing where applicable and an additional ML-DSA-87 signature over the release artifacts—the files distributed to users. The additional signed payload binds the version, release tag, target platform, artifact name, and SHA-256 digest.

The digest identifies the artifact’s contents. Signing those contents together with their release identity prevents a valid signature for one target or release from being treated as generic permission to install any file bearing a familiar name.

These checks have different jobs. Platform signing participates in the operating system’s trust and installation model. The additional artifact signature verifies the downloaded release against the key embedded in Rockpile. Neither proves that the code has no vulnerabilities.

The additional signature also does not change the blockchain signatures your wallet uses. A post-quantum release-signing algorithm is a property of software distribution, not a claim that every supported blockchain is quantum-resistant.

Keep installation unavailable during verification

A common integration hazard is adding a verifier while leaving an updater library’s automatic installation path enabled. The application may display an error even though quitting later installs the rejected file.

Rockpile disables automatic download and installation on quit. During verification, there is no verified update available for installation. If verification fails, explicit installation remains unavailable as well.

Requested download
        ↓
Verify release and file
  ├── Fail: block installation
  └── Pass: ready to install
                  ↓
          User chooses install
                  ↓
          Verify file again

Tests exercise the updater library’s behavior when the app quits during verification and after rejection. A passing test must show that installation did not run; displaying an error alone is insufficient.

Check again at installation time

A file verified at download time may not be the file present when installation begins. The user may wait before installing, and local bytes can change during that interval.

Rockpile verifies the selected artifact again when the user chooses to install it. A changed digest blocks installation. The service also permits only one download or installation operation at a time, avoiding overlapping requests that could mix their state.

The normal updater disallows automatic downgrades and prereleases. A deliberate release rollback still needs a controlled procedure and platform testing; it is not an exception inferred from a failed update.

Protect the native helper boundary too

The native vault broker performs sensitive key operations outside the interface. Verifying the main application while accepting an arbitrary replacement broker would leave that boundary incomplete.

Packaged startup therefore checks the broker through the relevant platform mechanism. macOS and Windows use platform signing checks with expected identity constraints. Linux binds the broker to a digest embedded in the integrity-protected application archive. Release verification also inspects the packaged executables and their metadata.

This article describes those implemented checks. Demonstrating a release’s installation behavior requires signed artifacts and clean-install, update, and rollback exercises on the supported operating systems. An updater unit test cannot stand in for those results.

When verification fails, the update remains unapproved for installation. Keep the working installation and follow installation and update guidance. For how release evidence is assessed, read the release-testing standard.