Prethereum
Verifiable proofs for any computation. Commit bytes, receive an Ed25519 signature over a SHA-256 digest. The proof is self-contained JSON. Verification is offline.
Security Model
Data flow:
- - Commit sends only the bytes you explicitly provide to the notary. The tool does not scan, enumerate, or read files beyond what is specified.
- Verify is fully local. No data leaves your machine.
- Health sends an empty GET. No payload.
Notary behavior:
The notary runs inside an AWS Nitro Enclave (hardware-isolated TEE). It receives bytes, computes a SHA-256 digest, signs with Ed25519, returns the proof. The enclave has no persistent storage. Nothing is logged, stored, or forwarded.
Do not commit secrets. Bytes transit over HTTPS. Do not send credentials, private keys, or sensitive PII.
Network Behavior
| Operation | Direction | Payload | Persistence |
|---|
| Commit | Client -> Notary | User-provided bytes (HTTPS) | None |
| Verify |
Local only | None | N/A |
|
Health | Client -> Notary | Empty GET | None |
Requirements
Installation
CODEBLOCK0
For the MCP server, install globally with a pinned version:
CODEBLOCK1
All packages are open source (Apache-2.0). Inspect before installing:
CODEBLOCK2
Quick Start
CODEBLOCK3
Verification
CODEBLOCK4
HTTP API
CODEBLOCK5
Packages
| Package | Description |
|---|
| INLINECODE0 | Core library + stub for development |
| INLINECODE1 |
AWS Nitro Enclaves adapter |
|
@prethereum/mcp | MCP server for Claude |
|
@prethereum/cli | CLI: commit, verify, serve |
|
@prethereum/adapter-kit | TEE builder kit + compliance suite |
Source Code
References
- -
references/protocol.md - wire format and verification spec
Prethereum
任何计算的可验证证明。提交字节,接收经过SHA-256摘要的Ed25519签名。证明是自包含的JSON格式。验证可离线进行。
安全模型
数据流:
- - 提交仅将您明确提供的字节发送给公证人。该工具不会扫描、枚举或读取指定范围之外的文件。
- 验证完全在本地进行。没有数据离开您的机器。
- 健康检查发送一个空的GET请求。无有效载荷。
公证人行为:
公证人在AWS Nitro Enclave(硬件隔离的TEE)内运行。它接收字节,计算SHA-256摘要,使用Ed25519签名,返回证明。该Enclave没有持久化存储。不会记录、存储或转发任何内容。
不要提交机密信息。 字节通过HTTPS传输。请勿发送凭证、私钥或敏感的个人身份信息(PII)。
网络行为
| 操作 | 方向 | 有效载荷 | 持久化 |
|---|
| 提交 | 客户端 -> 公证人 | 用户提供的字节(HTTPS) | 无 |
| 验证 |
仅本地 | 无 | 不适用 |
|
健康检查 | 客户端 -> 公证人 | 空GET请求 | 无 |
系统要求
安装
npm install prethereum
对于MCP服务器,使用固定版本进行全局安装:
npm install -g @prethereum/mcp@0.1.0
所有包均为开源(Apache-2.0)。安装前请检查:
npm pack @prethereum/mcp@0.1.0 && tar -xzf prethereum-mcp-0.1.0.tgz
快速开始
typescript
import { Constructor, StubHost } from prethereum;
const host = await StubHost.create();
const ctor = new Constructor(host);
const proof = await ctor.commit(
Buffer.from(Hello, world)
);
验证
typescript
import { verify } from prethereum;
const result = await verify({ proof, bytes });
// result.valid === true | false
HTTP API
bash
curl -X POST http://localhost:3030/commit \
-H Content-Type: application/octet-stream \
--data-binary @output.json
包
| 包 | 描述 |
|---|
| prethereum | 核心库 + 开发用存根 |
| @prethereum/nitro |
AWS Nitro Enclaves适配器 |
| @prethereum/mcp | 用于Claude的MCP服务器 |
| @prethereum/cli | CLI:提交、验证、服务 |
| @prethereum/adapter-kit | TEE构建工具包 + 合规套件 |
源代码
参考
- - references/protocol.md - 线格式和验证规范