// Deterministic Ed25519 keypair used by the Phase 7 Playwright e2e // suite to forge gateway-shaped responses inside `page.route(...)`. // The pair was generated once with Node's WebCrypto and is checked // in: it is purely test fixture material, not used in production // builds, and the public half lands in the dev server via // `VITE_GATEWAY_RESPONSE_PUBLIC_KEY` from `playwright.config.ts`. export const FIXTURE_PUBLIC_KEY_RAW_BASE64 = "3Jf1C+qApVeysTytS6umsvTGqNfn3oHcagJhO97Ias4="; export const FIXTURE_PRIVATE_KEY_PKCS8_BASE64 = "MC4CAQAwBQYDK2VwBCIEIGnpfNAYxKJivan1ww5uvidgozuz9JXQM9dcdYrSiHHt"; export function decodeBase64(value: string): Uint8Array { const bin = Buffer.from(value, "base64"); return new Uint8Array(bin.buffer, bin.byteOffset, bin.byteLength); }