Skip to main content

Rust SDK API Reference / Record V2 codecs and verification / ParsedRecordV2::verify_roa

Method: ParsedRecordV2::verify_roa()

pub fn verify_roa(&self) -> Result<(), SnsError>

Defined in: record_v2.rs:72

Verifies that the stored validation type and RoA identifier match the rules for the parsed record type.

Returns

() when the proof is valid. A mismatched validation or ID returns SnsError::UnverifiedRecord; content serialization errors can propagate.

Example

parsed.verify_roa()?;