Skip to content

Add predicate: EIP-712 Payload Attestation (secp256k1 typed-data receipt over exact bytes) - #590

Open
0rkz wants to merge 2 commits into
in-toto:mainfrom
0rkz:predicate/eip712-payload-attestation
Open

Add predicate: EIP-712 Payload Attestation (secp256k1 typed-data receipt over exact bytes)#590
0rkz wants to merge 2 commits into
in-toto:mainfrom
0rkz:predicate/eip712-payload-attestation

Conversation

@0rkz

@0rkz 0rkz commented Aug 21, 2026

Copy link
Copy Markdown

What: A predicate type carrying an EIP-712 PayloadAttestation — a secp256k1 typed-data signature over the exact bytes of a served payload with a signer-declared validity deadline — inside a Statement v1, so receipts produced in the Ethereum/x402 ecosystem can be consumed by in-toto/DSSE policy tooling without re-signing. Type URI is under our own domain (https://payperbyte.io/attestation/eip712-payload-attestation/v1), so this PR only asks for directory listing/vetting, not a namespace grant.

Why existing predicates don't fit: none carries an independently verifiable third-party typed-data signature whose key is recovered from the signature itself; SLSA Provenance/SCAI/Simple Verification Result describe builds or evaluations, not "which key signed exactly these bytes and until when". The predicate deliberately nests the EIP-712 signature as content (DSSE signs the Statement; the nested signature verifies on its own terms).

Policy questions it answers: is publisher an accepted key for this resource; does keccak256(bytes) equal the signed payloadHash; is the receipt within its deadline; under which EIP-712 domain was it signed.

Scope: authenticity + tamper-evidence of exact bytes — explicitly not correctness/truth of the payload (stated normatively in the spec).

Example: complete Statement with a real, re-verifiable signature (ephemeral example key); verification sketch included.

Disclosure: authored by BYTEDev Inc (PayPerByte/ForeSeal), whose HTTP receipt uses this struct in production; the predicate is generic and not tied to our service.

…ipt over exact bytes)

Signed-off-by: 0rkz <paperm2m@gmail.com>
@0rkz
0rkz requested a review from a team as a code owner August 21, 2026 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant