Skip to main content

Module verify

Module verify 

Source
Expand description

Pure ML-DSA-65 verification helpers for quotes and merkle candidates. Pure verification helpers for payment quotes and merkle candidates.

These functions inspect signed wire artifacts (PaymentQuote and MerklePaymentCandidateNode) and confirm their ML-DSA-65 signatures are valid. They do no I/O and do not touch on-chain state.

Both the client (when building proofs) and the node (when validating incoming PUTs) need identical verification semantics — keeping these functions in ant-protocol ensures the client and node cannot drift.

Functions§

verify_merkle_candidate_signature
Verify a MerklePaymentCandidateNode’s ML-DSA-65 signature.
verify_quote_content
Verify that a payment quote’s content address matches the expected address.
verify_quote_signature
Verify a payment quote’s ML-DSA-65 signature.