Modules§
- algos
- config
- The config module provides configuration-loading mechanism for OpenRank programs.
- merkle
- net
- query
- topics
- tx
- tx_
event
Structs§
- MyBehaviour
- A custom libp2p network behavior used by OpenRank nodes.
Enums§
- MyBehaviour
Event NetworkBehaviour::ToSwarm
produced by MyBehaviour.
Functions§
- address_
from_ sk - Generates an address from a signing key. The address is the first 20 bytes of the keccak256 hash of the public key, which is compatible with Ethereum addresses.
- broadcast_
default_ event - Broadcasts a default transaction event to the given topic.
- broadcast_
event - Broadcasts a transaction event to the given topic.
- build_
node - Builds a libp2p swarm with the custom behaviour.