Module announcement

Module announcement 

Source
Expand description

Implements types for on-chain announcement of nodes.

Structs§

AnnouncementData
Structure containing data used for an on-chain announcement. That is an optional decapsulated multiaddress (with the /p2p/{peer_id} suffix removed) and mandatory keybinding KeyBinding.
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.