Skip to main content

Module proof

Module proof 

Source
Expand description

Payment proof serialization and type tagging. Payment proof wrapper that includes transaction hashes.

PaymentProof bundles a ProofOfPayment (quotes + peer IDs) with the on-chain transaction hashes returned by the wallet after payment.

Structs§

PaymentProof
A payment proof that includes both the quote-based proof and on-chain tx hashes.

Enums§

ProofType
The detected type of a payment proof.

Functions§

deserialize_merkle_proof
Deserialize proof bytes as a MerklePaymentProof.
deserialize_proof
Deserialize proof bytes from the PaymentProof format (single-node).
deserialize_single_node_proof
Deserialize the full single-node PaymentProof, including the ADR-0004 commitment_sidecars. Use this where the sidecars are needed (the node-side cross-check); deserialize_proof remains for callers that only want the quotes + tx hashes.
detect_proof_type
Detect the proof type from the first byte (version tag).
serialize_merkle_proof
Serialize a MerklePaymentProof with the version tag prefix.
serialize_single_node_proof
Serialize a PaymentProof (single-node) with the version tag prefix.