Record V1 codecs
Rust SDK API Reference / Record V1 codecs
These local codecs and verifier handle legacy SNS Records V1 payloads without RPC. They select fixed-width binary encodings for address records and UTF-8 or punycode encodings for applicable textual records.
APIs
| API | Description |
|---|---|
get_record_size | Returns the fixed binary width for a record type. |
deserialize_record | Decodes and validates a V1 record payload. |
serialize_record | Encodes content for a V1 record payload. |
check_sol_record | Verifies a legacy SOL record signature. |