rootchain

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertRequestBuffer added in v0.2.0

type CertRequestBuffer struct {
	// contains filtered or unexported fields
}

func NewCertificationRequestBuffer added in v0.2.0

func NewCertificationRequestBuffer() *CertRequestBuffer

NewCertificationRequestBuffer create new certification nodeRequest buffer

func (*CertRequestBuffer) Add added in v0.2.0

Add request to certification store. Per node id first valid request is stored. Rest are either duplicate or equivocating and in both cases error is returned. Clear or Reset in order to receive new nodeRequest

func (*CertRequestBuffer) Clear added in v0.2.0

Clear clears node request in one partition

func (*CertRequestBuffer) IsConsensusReceived added in v0.2.0

IsConsensusReceived has partition with id reached consensus

func (*CertRequestBuffer) Reset added in v0.2.0

func (c *CertRequestBuffer) Reset()

Reset removed all incoming nodeRequest from all stores

type MsgVerification added in v0.2.0

type MsgVerification interface {
	IsValid(v crypto.Verifier) error
}

type Node added in v0.2.0

type Node struct {
	// contains filtered or unexported fields
}

func New added in v0.2.0

New creates a new instance of the root chain node

func (*Node) Run added in v0.2.0

func (v *Node) Run(ctx context.Context) error

type PartitionNet added in v0.2.0

type PartitionNet interface {
	Send(ctx context.Context, msg any, receivers ...peer.ID) error
	ReceivedChannel() <-chan any
}

type QuorumStatus added in v0.2.0

type QuorumStatus uint8
const (
	QuorumInProgress QuorumStatus = iota
	QuorumAchieved
	QuorumNotPossible
)

type Subscriptions added in v0.2.0

type Subscriptions struct {
	// contains filtered or unexported fields
}

func NewSubscriptions added in v0.2.0

func NewSubscriptions() *Subscriptions

func (*Subscriptions) Get added in v0.2.0

func (s *Subscriptions) Get(id p.SystemIdentifier) []string

func (*Subscriptions) Subscribe added in v0.2.0

func (s *Subscriptions) Subscribe(id p.SystemIdentifier, nodeId string)

func (*Subscriptions) SubscriberError added in v0.2.0

func (s *Subscriptions) SubscriberError(id p.SystemIdentifier, nodeId string)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL