Client-side release verification. How users verify they are running authentic marketplace code without trusting any server.
Release verification ensures users are running authentic, untampered marketplace code. All verification happens client-side using browser crypto APIs. No trusted server is needed.
Every release ships with two artifacts:
The release public key is published in the repository and well-known endpoints. Nodes pin this key and reject manifests signed by unknown keys.
The browser performs these checks without any server trust:
async function verifyReleaseManifestClient(
manifest: ReleaseManifest,
signature: Uint8Array,
publicKey: CryptoKey
) {
// 1. Parse and validate manifest schema
const parsed = ReleaseManifestSchema.parse(manifest);
// 2. Canonical serialization (deterministic key ordering)
const canonicalManifest = canonicalJSON(parsed);
// 3. Verify Ed25519 signature against release public key
const isValid = await crypto.subtle.verify(
"Ed25519", publicKey, signature,
new TextEncoder().encode(canonicalManifest)
);
if (!isValid) throw new Error("Invalid release signature");
// 4. Hash the manifest payload for cross-node comparison
const manifestHash = await crypto.subtle.digest(
"SHA-256", new TextEncoder().encode(canonicalManifest)
);
// 5. Fetch each asset and verify its hash individually
for (const asset of parsed.assets) {
const response = await fetch(asset.path);
const assetBytes = await response.arrayBuffer();
const hash = await crypto.subtle.digest("SHA-256", assetBytes);
if (toHex(hash) !== asset.expectedHash) {
throw new Error("Asset tampered: " + asset.path);
}
}
}Nodes track release manifests via RELEASE_MANIFEST_SEEN protocol events:
RELEASE_MANIFEST_SEEN event containing the manifest hash and its own signature.ReleaseGuard component that warns users immediately if a mismatch is detected between the serving node and network consensus.Session attestation (see Node Authentication) binds the served content hash to the serving node identity. If a node serves tampered UI assets, the attestation will not match what other nodes expect, and clients can detect the discrepancy.
Because the marketplace is fully open source, any participant can: