Skip to main content

verify_quote_content

Function verify_quote_content 

Source
pub fn verify_quote_content(
    quote: &PaymentQuote,
    expected_content: &XorName,
) -> bool
Expand description

Verify that a payment quote’s content address matches the expected address.

This is a pure field-equality check — the signature is verified separately via verify_quote_signature.

§Arguments

  • quote - The quote to check.
  • expected_content - The address the caller expected.

§Returns

true if quote.content equals expected_content.