Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FullNode ¶
type FullNode struct {
// contains filtered or unexported fields
}
FullNode represents a full-node in the network
func NewFullNode ¶
func NewFullNode(conf *FullNodeConfig) *FullNode
NewFullNode returns a new full-node configured as specified
func (*FullNode) GetShare ¶
func (fn *FullNode) GetShare(rq *ShareRequest) bool
GetShare returns a boolean that represent that the shared was returned
type FullNodeConfig ¶
type FullNodeConfig struct {
K int
}
Config represents configurations for the full-node
type LightNode ¶
type LightNode struct {
// contains filtered or unexported fields
}
LightNode represents a light-node in the network
func NewLightNode ¶
func NewLightNode(r *rand.Rand, config *LightNodeConfig) *LightNode
NewLightNode returns a fresh light-node
func (*LightNode) AskForNextShare ¶
type LightNodeConfig ¶
LightNodeConfig represents configuration of the light-node
Click to show internal directories.
Click to hide internal directories.