Categorygithub.com/mikelsr/nahs
modulepackage
0.0.0-20200618220903-e4becd7dfa14
Repository: https://github.com/mikelsr/nahs.git
Documentation: pkg.go.dev

# README

NaHS logo

Network of Autonomous and Heterogeneous Services (NaHS)

Build Status codecov License: MPL 2.0 Go Version GoDoc Reference

Modules

  • events: Describes BSPL instance events according to the implementation. As of now there are three events:

    • NewEvent to create an instance of a protocol.

    • UpdateEvent to update an instace comparing it to a future version of it.

    • DropEvent to cancel an instance for any reason.

  • net: Networking components. The main struct is Node. A node has a BSPL reasoner and a LibP2P host, implementing methods and handlers to send BSPL components between network peers. Nodes discover each other either manually or with the libp2p implementation of rendezvous (preferred) using the default bootstrap nodes.

Other folders

  • config: Contains the private key of the main network (which is public, private only limits interaction to NaHS nodes).

  • scripts: Contains a script to generate a private network key.

  • test: Test resources.

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# Functions

MakeNode creates a node with the specified private key so the node maintains the ID it previously had.
NewNode creates a new NaHS node.

# Type aliases

No description provided by the author