# AT Protocol Notary (atnotary) Create permanent, verifiable attestations of [AT Protocol](https://atproto.com/) records using [Ethereum Attestation Service](https://attest.org/) (EAS). ## Why - **Standardized attestations** - interoperable format used across ecosystem - **On-chain verification** - stored on Ethereum/Base, immutable and public - **Composable** - other projects can reference and build on attestations - **Infrastructure** - explorers, indexers, and tooling already exist - **Multi-chain** - works on Ethereum, Base, Optimism, Arbitrum ## What Gets Attested - `recordURI` - Full AT Protocol URI - `cid` - AT Protocol's content identifier - `contentHash` - DAG-CBOR hash - `pds` - Personal Data Server URL - `timestamp` - When attested ## Install ```bash npm install -g atnotary ``` ## Setup 1. **Create config file:** ```bash atnotary config ``` 2. **Edit `.atnotary.yaml`:** ```yaml privateKey: "0x..." # private key for writing network: base-sepolia # default network ``` 3. **Get testnet ETH:** - Sepolia: https://sepoliafaucet.com/ - Base Sepolia: https://bridge.base.org/ **That's it!** Default schemas are provided for all networks. ### Custom Schema (Optional) If you want to deploy your own schema: ```bash atnotary init --network sepolia ``` Then add the `schemaUID` to your `.atnotary.yaml` file. ## Usage ```bash # notarize atnotary notarize "at://did:plc:xxx/app.bsky.feed.post/abc" # verify atnotary verify "0xabc..." --network sepolia # compare with current state atnotary verify "0xabc..." --compare ``` ## Library Usage ```typescript import { ATProtocolNotary } from 'atnotary'; const notary = new ATProtocolNotary({ privateKey: "0x...", // optional, just for writing }, 'sepolia'); const result = await notary.notarizeRecord('at://...'); const attestation = await notary.verifyAttestation('0x...'); const comparison = await notary.compareWithCurrent(attestation); ``` ## Networks - Ethereum Sepolia (testnet) - Base Sepolia (testnet) - Base (mainnet) ## Use Cases - Political accountability - Journalism evidence - Open source governance - Content authorship proof - Legal documentation ## License MIT