ContactKey
Type-safe wrapper for contact key strings (channel index + node address).
Contact keys are persisted as strings in the format "<channel><nodeId>" (e.g. "0^all", "1!a1b2c3d4").
Properties
Link copied to clipboard
Parsed NodeAddress for the contact.
Link copied to clipboard
The node address portion: everything after the channel digit, or the whole key when there is no channel prefix. Empty if the key is empty.
Link copied to clipboard
The channel index if the key carries a leading channel digit, or null for a legacy unprefixed direct-message key. Callers that must distinguish "channel 0" from "no channel prefix" (e.g. PKI vs legacy DM routing) need this rather than channel.