messagesfactory

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePreparedProofBuilderFromPreparedMessages

func CreatePreparedProofBuilderFromPreparedMessages(preparedMessages *preparedmessages.PreparedMessages) *protocol.PreparedProofBuilder

Types

type MessageFactory

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

func NewMessageFactory

func NewMessageFactory(instanceId primitives.InstanceId, keyManager interfaces.KeyManager, memberId primitives.MemberId, randomSeed uint64) *MessageFactory

func (*MessageFactory) CreateCommitMessage

func (f *MessageFactory) CreateCommitMessage(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	blockHash primitives.BlockHash) *interfaces.CommitMessage

func (*MessageFactory) CreateNewViewMessage

func (f *MessageFactory) CreateNewViewMessage(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	ppContentBuilder *protocol.PreprepareContentBuilder,
	confirmations []*protocol.ViewChangeMessageContentBuilder,
	block interfaces.Block) *interfaces.NewViewMessage

func (*MessageFactory) CreateNewViewMessageContentBuilder

func (f *MessageFactory) CreateNewViewMessageContentBuilder(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	ppContentBuilder *protocol.PreprepareContentBuilder,
	confirmations []*protocol.ViewChangeMessageContentBuilder) *protocol.NewViewMessageContentBuilder

func (*MessageFactory) CreatePrepareMessage

func (f *MessageFactory) CreatePrepareMessage(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	blockHash primitives.BlockHash) *interfaces.PrepareMessage

func (*MessageFactory) CreatePreprepareMessage

func (f *MessageFactory) CreatePreprepareMessage(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	block interfaces.Block,
	blockHash primitives.BlockHash) *interfaces.PreprepareMessage

func (*MessageFactory) CreatePreprepareMessageContentBuilder

func (f *MessageFactory) CreatePreprepareMessageContentBuilder(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	block interfaces.Block,
	blockHash primitives.BlockHash) *protocol.PreprepareContentBuilder

func (*MessageFactory) CreatePreprepareMessageFromContentBuilder

func (f *MessageFactory) CreatePreprepareMessageFromContentBuilder(ppmc *protocol.PreprepareContentBuilder, block interfaces.Block) *interfaces.PreprepareMessage

func (*MessageFactory) CreateViewChangeMessage

func (f *MessageFactory) CreateViewChangeMessage(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	preparedMessages *preparedmessages.PreparedMessages) *interfaces.ViewChangeMessage

func (*MessageFactory) CreateViewChangeMessageContentBuilder

func (f *MessageFactory) CreateViewChangeMessageContentBuilder(
	blockHeight primitives.BlockHeight,
	view primitives.View,
	preparedMessages *preparedmessages.PreparedMessages) *protocol.ViewChangeMessageContentBuilder

Jump to

Keyboard shortcuts

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