Skip to main content

verify_quote_signature

Function verify_quote_signature 

Source
pub fn verify_quote_signature(quote: &PaymentQuote) -> bool
Expand description

Verify a payment quote’s ML-DSA-65 signature.

Autonomi uses ML-DSA-65 post-quantum signatures for quote signing (not the Ed25519/libp2p signatures that the upstream ant-evm library assumes). The pub_key field holds the raw ML-DSA-65 public key bytes; signature is the ML-DSA-65 signature over the quote’s canonical signing payload (PaymentQuote::bytes_for_sig).

§Returns

true if the signature is valid for quote.bytes_for_sig().