Crate openrank_common

Source

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§

MyBehaviourEvent
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.