Skip to main content

Spectre Protocol

Zero-knowledge account recovery for autonomous on-chain agents

Three recovery modes

Email + personhood, a pre-registered backup wallet, or M-of-N social guardians. Arm one or all three. Each is independent of the others.

ZK-proven email control

DKIM signatures are verified inside a Noir circuit. The chain learns nothing about the email contents, only that the registered owner sent it.

Pluggable personhood

Mock adapter today on testnet, zkPassport or BrightID next. Adapters are added via a governed propose/confirm flow, with no contract upgrade required.

From install to recovery

The SDK handles proof generation, on-chain transactions, and recovery flow state. You hand it an email and a private key; users get three independent paths to recover their agent.

import { SpectreClient } from '@spectre-protocol/sdk';

const client = new SpectreClient({
rpcUrl: 'https://sepolia.base.org',
registryAddress: '0x...',
privateKey: '0x...',
prover: { type: 'hosted', url: 'https://relayer.spectreprotocol.xyz' },
});

// 1. Confirm the user controls the email
const { challenge, verify } = client.confirmEmail('alice@example.com');
await challenge();
await verify(codeFromUser);

// 2. Register the agent
await client.register('alice@example.com');

// 3. Optional: arm backup wallet and social guardians
await client.setBackupWallet('0xBackup...');
await client.setGuardians([alice, bob, carol], 2);