Security
Verify a release
Check the Ed25519 signed manifest yourself.
Every release is described by a small manifest signed with an Ed25519 key. The signed text covers the version, the release time, the notes, and for each file its kind, URL and SHA-256 checksum. Relief's updater checks it, and you can too, without trusting this website.
What the updater already does
Before it installs anything, frontier update refuses a manifest unless all of these hold:
- The Ed25519 signature is valid.
- The version is newer than the one installed. It never downgrades.
- The tarball URL is HTTPS.
- The checksum is a 64 character hex SHA-256.
After downloading, it checks the file against the signed checksum, then installs with npm install -g --ignore-scripts, so no install script runs.
Check it by hand
Download manifest.json and the tarball it names. The manifest is at https://github.com/AnonSols/frontier-releases/releases/latest/download/manifest.json. Save the script below as verify.mjs next to them, and run it with Node 20 or newer:
import { createHash, verify } from "node:crypto";
import { readFileSync } from "node:fs";
// The public half of the release signing key, as published in the Relief source.
const publicKeyPem = `-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAbmbmsiqTg3N49L3XKm1mRPVdFEwQFfM+Bj9yT34yUm8=
-----END PUBLIC KEY-----`;
const manifest = JSON.parse(readFileSync("manifest.json", "utf8"));
// The signed text is these fields, in this order, as compact JSON.
// The signature itself is not part of it.
const signedText = JSON.stringify({
version: manifest.version,
releasedAt: manifest.releasedAt,
notes: manifest.notes,
assets: manifest.assets.map((asset) => ({
kind: asset.kind,
url: asset.url,
sha256: asset.sha256.toLowerCase(),
})),
});
const signatureIsValid = verify(
null,
Buffer.from(signedText, "utf8"),
publicKeyPem,
Buffer.from(manifest.signature, "base64"),
);
console.log("signature valid:", signatureIsValid);
// Pass the tarball path to check its checksum too: node verify.mjs rabahh-frontier-2.0.1.tgz
const tarballPath = process.argv[2];
if (tarballPath) {
const actual = createHash("sha256").update(readFileSync(tarballPath)).digest("hex");
const expected = manifest.assets.find((asset) => asset.kind === "tgz").sha256.toLowerCase();
console.log("checksum matches:", actual === expected);
}node verify.mjs rabahh-frontier-2.0.1.tgzYou should see signature valid: true and checksum matches: true. Change one character of the manifest and the first line turns false. That is how you know the check means something.
About the key
The key above is the one frontier update trusts. This page and the release come from the same place, so a stronger check is to compare it with the key inside a copy you already installed. The private half lives only in the maintainer's own user folder, outside every repository. Rotating the key means shipping a build that carries the new public key before the old private key is retired.
What this proves and does not
It proves the file you hold is the file the maintainer signed, and that it was not changed on the way. It does not prove the code is free of bugs, and nothing replaces reading the changelog. See the changelog.