package
0.0.0-20250101065929-58636c60f564
Repository: https://github.com/tokamak-network/drb-node.git
Documentation: pkg.go.dev
# Functions
CreateStream establishes a stream to a regular node for a given protocol.
No description provided by the author
GetLocalIP returns the local IP address of the node.
GetPeerIDFileName returns the appropriate file name based on the node type.
GetPublicIP returns the public IP address of the node by querying an external service.
GetRoundsRequest returns a GraphQL request for fetching rounds.
loadCommitData loads the commit data for a given round number.
No description provided by the author
LoadLeaderCommitData should load data from the file and return the commit data for a specific round and EOA.
LoadNodeInfo loads the node information from a file.
LoadPeerID loads the libp2p PeerID's private key from a file.
saveCommitData saves the commit data to a file.
SaveLeaderCommitData should save commit data in the correct format.
SaveNodeInfo saves the node information to a file.
SavePeerID saves the libp2p PeerID's private key to a file as bytes.
No description provided by the author
SignData signs the given data with the provided private key.
VerifySignature checks if the signature matches the EOA address.
# Constants
No description provided by the author
GraphQL query to fetch the rounds information.
# Structs
No description provided by the author
CommitData defines the structure for storing commit data for the regular node.
No description provided by the author
No description provided by the author
LeaderCommitData defines the structure for storing commit data in the leader node.
NodeInfo structure to store information about the node.
PeerIDStorage structure to store PeerID's private key as bytes.
No description provided by the author
No description provided by the author