Skip to main content

Record V2 codecs and verification

Rust SDK API Reference / Record V2 codecs and verification

These local codecs decode SNS Records V2 layout, parse content, and verify its staleness and Right-of-Association proofs. They operate on fetched account data; callers select the applicable Record type when decoding content.

APIs

APIDescription
decode_record_v2_fieldsDecodes the V2 header, validations, IDs, and content bytes.
RecordV2Fields::parse_contentParses decoded content into a ParsedRecordV2.
ParsedRecordV2::verify_stalenessVerifies the record against the current domain owner.
ParsedRecordV2::verify_roaVerifies the record's Right-of-Association proof.
deserialize_record_v2_contentDecodes content for a record type.
serialize_record_v2_contentEncodes content for a record type.