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
| API | Description |
|---|---|
decode_record_v2_fields | Decodes the V2 header, validations, IDs, and content bytes. |
RecordV2Fields::parse_content | Parses decoded content into a ParsedRecordV2. |
ParsedRecordV2::verify_staleness | Verifies the record against the current domain owner. |
ParsedRecordV2::verify_roa | Verifies the record's Right-of-Association proof. |
deserialize_record_v2_content | Decodes content for a record type. |
serialize_record_v2_content | Encodes content for a record type. |