RNS::ResourceAdvertisement
Encapsulates the metadata exchanged during resource transfer negotiation.
Holds transfer size, part count, hashes, flags (encryption, compression,
split, request/response), segment info, and the initial hashmap slice.
Serialised to/from MessagePack for transmission inside RESOURCE_ADV
packets.
Constants
COLLISION_GUARD_SIZE = (2 * Resource::WINDOW_MAX) + HASHMAP_MAX_LEN
HASHMAP_MAX_LEN = ((Link::MDU - OVERHEAD) // Resource::MAPHASH_LEN).to_i32
OVERHEAD = 134
Constructors
new(resource : Resource)
SourceClass methods
Instance methods
get_data_size
Sourceget_hash
Sourceget_link
Sourceget_parts
Sourceget_segments
Sourceget_transfer_size
Sourcehas_metadata?
Sourceis_compressed?
Sourcelink
Source