@receptum/core
v0.2.1
Published
Chain-agnostic job lifecycle, delivery receipts and rail interfaces for Receptum.
Maintainers
Readme
@receptum/core
Receptum Receipt Format v1 (spec).
createReceipt/receiptHash/receiptBytes— build a receipt and its JCS (RFC 8785) hash. Raw job ids are hashed, never published.generateSellerKey/sellerKeyFromPem/signReceipt/verifySignedReceipt— Ed25519did:keyseller signatures as detached JWS; verifies offline.- Account bindings (SPEC §4.1):
createAccountBinding,verifyAccountBinding,checkPayeeBinding(signedReceipt)— prove the seller's did:key controlspayment.payee. Chain verifiers implementBindingVerifierper CAIP-2 namespace (registerBindingVerifier, or passverifiers); Stellar (SEP-53) is built in, EVM and XRPL ship with their adapters. Bindings travel inSignedReceipt.bindings, outsidereceiptHash. sha256File— streaming file hash for large media.- Job lifecycle (
quoted → paid|escrowed → delivered → released|refunded) with enforced transitions. PaymentRail,EscrowRail,Anchor,EscrowCapabilities— implemented by the chain adapters.
Test vectors: spec/vectors/rrf-v1.json and spec/vectors/account-binding-v1.json (public test keys only).
