Expand description
Implements types for on-chain announcement of nodes.
Structs§
- Announcement
Data - Structure containing data used for an on-chain announcement.
That is the decapsulated multiaddress (with the /p2p/{peer_id} suffix removed) and
optional
KeyBinding
(an announcement can be done with key bindings or without) - KeyBinding
- Holds the signed binding of the chain key and the packet key.
Functions§
- decapsulate_
multiaddress - Decapsulates the multiaddress (= strips the /p2p/<peer_id> suffix). If it is already decapsulated, the function is an identity.