Skip to main content

Module proof

Module proof 

Source
Expand description

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).
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.