PEAC Protocol: Signed interaction receipts

v0.15.0
io.github.peacprotocol/peac Checked 1 day ago Published 6 months ago

Portable signed records for agent, API, MCP, and cross-runtime interactions.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

peac_verify Verify PEAC Receipt

Verify a PEAC receipt: check Ed25519 signature, validate claims, and return structured check results. Read-only, no side effects.

ParameterTypeDescription
jws *stringJWS compact serialization (header.payload.signature)
audiencestringExpected audience URI for binding check
issuerstringExpected issuer URI for binding check
jwksstringInline JWKS JSON containing the verifying key
public_key_base64urlstringEd25519 public key in base64url encoding (32 bytes)

peac_inspect Inspect PEAC Receipt

Inspect a PEAC receipt without verifying the signature. Returns decoded header, payload metadata, and timestamps. Read-only.

ParameterTypeDescription
jws *stringJWS compact serialization to inspect
full_claimsbooleanInclude full decoded claims (may be redacted by policy)

peac_decode Decode PEAC Receipt

Raw-decode a PEAC receipt JWS into header and payload objects. No signature check. Use peac_verify for trusted results.

ParameterTypeDescription
jws *stringJWS compact serialization to decode