Repository
Name: -
Description: -
Stars: -
Language: -
Last push: -
The codebase is organized around a single shared node package. These are not separate daemons; they are behaviors inside pkg/node that the CLI and GUI call into.
The bootstrap node:
52837Peer ID and Full addressesbs-nodesThat is the seed node every peer uses to join the network.
Discovery is implemented with routing discovery on the fgov-network topic.
Behavior:
AdvertiseDiscovery("fgov-network") waits for routing peers before advertisingFindPeers() pauses briefly on startup, then loops foreverDiscoveredPeersThe code currently focuses on finding and connecting peers directly. It does not implement onion routing or multi-hop paths.
The connection code handles both manual and automatic connections.
Manual connect:
peer.AddrInfoManual disconnect:
The CLI exposes connect, but not disconnect. The method still exists in the package for programmatic use.
When a peer connects, the node opens a stream using the /fgov protocol and exchanges names as JSON.
Example payload:
{"name":"example-node"}The exchange is symmetrical, so both sides can update their local peer maps with the remote name.
The package also provides helpers used by the CLI and GUI:
IsRunning()GetPeersSnapshot()GetDiscoveredPeersSnapshot()PrintPeers()PrintDiscoveredPeers()These are what the user-facing interfaces use to render live state.
bs-nodes.Loading live data from GitHub...
Name: -
Description: -
Stars: -
Language: -
Last push: -
Tag: -
Published: -
Assets: -
Count: -
Count: -