@frontiercompute/silo-zap1
v0.1.0
Published
Attest Silo agent actions to Zcash via ZAP1
Maintainers
Readme
silo-zap1
Attest Silo agent actions to Zcash via ZAP1.
Silo picked ZEC for private AI payments. This fills the missing piece: on-chain proof of what your agent actually did. Every action gets a leaf hash anchored to the Zcash chain via ZAP1.
Install
npm install @frontiercompute/silo-zap1Zero runtime dependencies. Works with any Silo agent.
Usage
import { attestAction, attestSession, verifyProof } from "@frontiercompute/silo-zap1";
const config = {
apiKey: "your-api-key",
agentId: "freysa-prod-01",
};
// Attest a single action
const result = await attestAction(config, {
actionType: "tool_call",
inputHash: "sha256-of-input",
outputHash: "sha256-of-output",
});
console.log(result.leafHash); // 0xabc...
console.log(result.verifyUrl); // https://pay.frontiercompute.io/verify/0xabc...
// Attest session start/end
await attestSession(config, { action: "start" });
await attestSession(config, { action: "end", actionCount: 12 });
// Verify a proof
const proof = await verifyProof("https://pay.frontiercompute.io", result.leafHash);API
attestAction(config, action) - Attest one agent action. Returns { leafHash, verifyUrl }.
attestSession(config, session) - Attest a session start or end event.
verifyProof(apiUrl, leafHash) - Check inclusion proof for a leaf hash.
Protocol
Built on ZAP1 - a Zcash memo-anchored attestation protocol. Live proofs visible at https://pay.frontiercompute.io/verify/{leafHash}.
License
MIT
