# MASQ public signature reproduction

This bundle contains only public test material. It verifies the pinned two-event
Ed25519 example shown on the MASQ website and proves that changing the persona
name while retaining the signature is rejected.

Requirements: Node.js 22 or another current Node release with Ed25519 support.
No package install, network, MASQ checkout, private repository, secret, or local
service is required.

The bundle's fixture is byte-identical to the browser download. Both pin SHA-256
`ee28c6822cdf21f7b91c31e3454fbf1be32531df83731e9d40db84d66dd0e232`.

```sh
node verify.mjs
```

Expected output:

```text
ORIGINAL: VERIFIED (2/2 events)
TAMPERED: REJECTED (signature and integrity checks failed as expected)
RECONSTRUCTED: SAME VIEW (sha256:22b202efa06c6bf3f2ccba6fd5a6d15d0846a8fba197c6364dd0218651cc6020)
ALTERED REPLAY: REJECTED
```

The verifier pins the fixture SHA-256, canonicalizes the unsigned event bytes,
checks Ed25519 signatures, recomputes payload hashes and event IDs, and checks
the fixture's trusted network/namespace and two-event chain. This is a focused
public-fixture verifier, not a general MASQ protocol validator, real-world
identity check, network-acceptance result, or security audit.

The additional `reconstruct-state.mjs` is a website-only bounded reducer, identical
to the source used by the Data scenario. Verified records project actor ID,
persona ID, display alias, publication status, count, and last event ID. Clearing
and rebuilding that derived view yields the same SHA-256 of canonical JSON.
Invalid signatures prevent reconstruction. This does not reproduce the full
protocol replay engine, a follow graph, private authorization, or production
cross-application portability. No new signed fixture was invented.
