Skip to main content

Module proof

Module proof 

Source
Expand description

Payment proof re-exports from ant_protocol.

Extracted to the ant_protocol crate in 0.11 so ant-client and ant-node share one version of the serialization format. Internal callers using crate::payment::proof::… keep working unchanged.

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.