Expand description
Interact with the networking module For configuration, debugging, and creating signatures with networking key.
Your process must have the Capability
to message and receive messages from
net:distro:sys
to use this module.
Structs§
- HnsUpdate
- Update type used to convert hypermap entries into node identities.
Only currently used in userspace for
eth:distro:sys
configuration. - Identity
- The data structure used by
net:distro:sys
and the rest of the runtime to represent node identities in the HNS (Hyperware Name System). - Namehash
ToName Request - Request to resolve a namehash to a name. Hash is a namehash from
hypermap
. Block is optional, and if provided will return the name at that block number. If not provided, the latest knowledge will be returned.
Enums§
- Indexer
Requests - Request performed to
hns-indexer:hns-indexer:sys
, a userspace process installed by default. - Indexer
Responses - Response from
hns-indexer:hns-indexer:sys
. - NetAction
- Must be parsed from message pack vector (use
rmp-serde
). All “Get” actions must be sent from a local process. Used for debugging. - NetResponse
- Must be parsed from message pack vector (use
rmp-serde
). - Node
Routing - Routing information for a node identity. Produced from hypermap data entries and used to create net connections between nodes.
Functions§
- get_
name - Get a
crate::hypermap::Hypermap
entry name from its namehash. - sign
- Sign a message with the node’s networking key. This may be used to prove identity to other parties outside of using the networking protocol.
- verify
- Verify a signature on a message.