protocol

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 4 Imported by: 2

Documentation

Overview

AUTO GENERATED FILE (by membufc proto compiler v0.0.32)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockProof

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

func BlockProofReader

func BlockProofReader(buf []byte) *BlockProof

func (*BlockProof) BlockRef

func (x *BlockProof) BlockRef() *BlockRef

func (*BlockProof) Equal

func (x *BlockProof) Equal(y *BlockProof) bool

func (*BlockProof) IsValid

func (x *BlockProof) IsValid() bool

func (*BlockProof) MutateRandomSeedSignature

func (x *BlockProof) MutateRandomSeedSignature(v primitives.RandomSeedSignature) error

func (*BlockProof) NodesIterator

func (x *BlockProof) NodesIterator() *BlockProofNodesIterator

func (*BlockProof) RandomSeedSignature

func (x *BlockProof) RandomSeedSignature() primitives.RandomSeedSignature

func (*BlockProof) Raw

func (x *BlockProof) Raw() []byte

func (*BlockProof) RawBlockRef

func (x *BlockProof) RawBlockRef() []byte

func (*BlockProof) RawBlockRefWithHeader

func (x *BlockProof) RawBlockRefWithHeader() []byte

func (*BlockProof) RawNodesArray

func (x *BlockProof) RawNodesArray() []byte

func (*BlockProof) RawNodesArrayWithHeader

func (x *BlockProof) RawNodesArrayWithHeader() []byte

func (*BlockProof) RawRandomSeedSignature

func (x *BlockProof) RawRandomSeedSignature() []byte

func (*BlockProof) RawRandomSeedSignatureWithHeader added in v0.3.0

func (x *BlockProof) RawRandomSeedSignatureWithHeader() []byte

func (*BlockProof) String

func (x *BlockProof) String() string

func (*BlockProof) StringBlockRef

func (x *BlockProof) StringBlockRef() string

func (*BlockProof) StringNodes

func (x *BlockProof) StringNodes() (res string)

func (*BlockProof) StringRandomSeedSignature

func (x *BlockProof) StringRandomSeedSignature() string

type BlockProofBuilder

type BlockProofBuilder struct {
	BlockRef            *BlockRefBuilder
	Nodes               []*SenderSignatureBuilder
	RandomSeedSignature primitives.RandomSeedSignature
	// contains filtered or unexported fields
}

func BlockProofBuilderFromRaw

func BlockProofBuilderFromRaw(raw []byte) *BlockProofBuilder

func (*BlockProofBuilder) Build

func (w *BlockProofBuilder) Build() *BlockProof

func (*BlockProofBuilder) CalcRequiredSize

func (w *BlockProofBuilder) CalcRequiredSize() membuffers.Offset

func (*BlockProofBuilder) GetSize

func (w *BlockProofBuilder) GetSize() membuffers.Offset

func (*BlockProofBuilder) HexDump

func (w *BlockProofBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*BlockProofBuilder) Write

func (w *BlockProofBuilder) Write(buf []byte) (err error)

type BlockProofNodesIterator

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

func (*BlockProofNodesIterator) HasNext

func (i *BlockProofNodesIterator) HasNext() bool

func (*BlockProofNodesIterator) NextNodes

func (i *BlockProofNodesIterator) NextNodes() *SenderSignature

type BlockRef

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

func BlockRefReader

func BlockRefReader(buf []byte) *BlockRef

func (*BlockRef) BlockHash

func (x *BlockRef) BlockHash() primitives.BlockHash

func (*BlockRef) BlockHeight

func (x *BlockRef) BlockHeight() primitives.BlockHeight

func (*BlockRef) Equal

func (x *BlockRef) Equal(y *BlockRef) bool

func (*BlockRef) InstanceId

func (x *BlockRef) InstanceId() primitives.InstanceId

func (*BlockRef) IsValid

func (x *BlockRef) IsValid() bool

func (*BlockRef) MessageType

func (x *BlockRef) MessageType() MessageType

func (*BlockRef) MutateBlockHash

func (x *BlockRef) MutateBlockHash(v primitives.BlockHash) error

func (*BlockRef) MutateBlockHeight

func (x *BlockRef) MutateBlockHeight(v primitives.BlockHeight) error

func (*BlockRef) MutateInstanceId

func (x *BlockRef) MutateInstanceId(v primitives.InstanceId) error

func (*BlockRef) MutateMessageType

func (x *BlockRef) MutateMessageType(v MessageType) error

func (*BlockRef) MutateView

func (x *BlockRef) MutateView(v primitives.View) error

func (*BlockRef) Raw

func (x *BlockRef) Raw() []byte

func (*BlockRef) RawBlockHash

func (x *BlockRef) RawBlockHash() []byte

func (*BlockRef) RawBlockHashWithHeader added in v0.3.0

func (x *BlockRef) RawBlockHashWithHeader() []byte

func (*BlockRef) RawBlockHeight

func (x *BlockRef) RawBlockHeight() []byte

func (*BlockRef) RawInstanceId

func (x *BlockRef) RawInstanceId() []byte

func (*BlockRef) RawMessageType

func (x *BlockRef) RawMessageType() []byte

func (*BlockRef) RawView

func (x *BlockRef) RawView() []byte

func (*BlockRef) String

func (x *BlockRef) String() string

func (*BlockRef) StringBlockHash

func (x *BlockRef) StringBlockHash() string

func (*BlockRef) StringBlockHeight

func (x *BlockRef) StringBlockHeight() string

func (*BlockRef) StringInstanceId

func (x *BlockRef) StringInstanceId() string

func (*BlockRef) StringMessageType

func (x *BlockRef) StringMessageType() string

func (*BlockRef) StringView

func (x *BlockRef) StringView() string

func (*BlockRef) View

func (x *BlockRef) View() primitives.View

type BlockRefBuilder

type BlockRefBuilder struct {
	InstanceId  primitives.InstanceId
	MessageType MessageType
	BlockHeight primitives.BlockHeight
	View        primitives.View
	BlockHash   primitives.BlockHash
	// contains filtered or unexported fields
}

func BlockRefBuilderFromRaw

func BlockRefBuilderFromRaw(raw []byte) *BlockRefBuilder

func (*BlockRefBuilder) Build

func (w *BlockRefBuilder) Build() *BlockRef

func (*BlockRefBuilder) CalcRequiredSize

func (w *BlockRefBuilder) CalcRequiredSize() membuffers.Offset

func (*BlockRefBuilder) GetSize

func (w *BlockRefBuilder) GetSize() membuffers.Offset

func (*BlockRefBuilder) HexDump

func (w *BlockRefBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*BlockRefBuilder) Write

func (w *BlockRefBuilder) Write(buf []byte) (err error)

type CommitContent

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

func CommitContentReader

func CommitContentReader(buf []byte) *CommitContent

func (*CommitContent) Equal

func (x *CommitContent) Equal(y *CommitContent) bool

func (*CommitContent) IsValid

func (x *CommitContent) IsValid() bool

func (*CommitContent) MutateShare

func (*CommitContent) Raw

func (x *CommitContent) Raw() []byte

func (*CommitContent) RawSender

func (x *CommitContent) RawSender() []byte

func (*CommitContent) RawSenderWithHeader

func (x *CommitContent) RawSenderWithHeader() []byte

func (*CommitContent) RawShare

func (x *CommitContent) RawShare() []byte

func (*CommitContent) RawShareWithHeader added in v0.3.0

func (x *CommitContent) RawShareWithHeader() []byte

func (*CommitContent) RawSignedHeader

func (x *CommitContent) RawSignedHeader() []byte

func (*CommitContent) RawSignedHeaderWithHeader

func (x *CommitContent) RawSignedHeaderWithHeader() []byte

func (*CommitContent) Sender

func (x *CommitContent) Sender() *SenderSignature

func (*CommitContent) Share

func (*CommitContent) SignedHeader

func (x *CommitContent) SignedHeader() *BlockRef

func (*CommitContent) String

func (x *CommitContent) String() string

func (*CommitContent) StringSender

func (x *CommitContent) StringSender() string

func (*CommitContent) StringShare

func (x *CommitContent) StringShare() string

func (*CommitContent) StringSignedHeader

func (x *CommitContent) StringSignedHeader() string

type CommitContentBuilder

type CommitContentBuilder struct {
	SignedHeader *BlockRefBuilder
	Sender       *SenderSignatureBuilder
	Share        primitives.RandomSeedSignature
	// contains filtered or unexported fields
}

func CommitContentBuilderFromRaw

func CommitContentBuilderFromRaw(raw []byte) *CommitContentBuilder

func (*CommitContentBuilder) Build

func (w *CommitContentBuilder) Build() *CommitContent

func (*CommitContentBuilder) CalcRequiredSize

func (w *CommitContentBuilder) CalcRequiredSize() membuffers.Offset

func (*CommitContentBuilder) GetSize

func (w *CommitContentBuilder) GetSize() membuffers.Offset

func (*CommitContentBuilder) HexDump

func (w *CommitContentBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*CommitContentBuilder) Write

func (w *CommitContentBuilder) Write(buf []byte) (err error)

type LeanhelixContent

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

func LeanhelixContentReader

func LeanhelixContentReader(buf []byte) *LeanhelixContent

func (*LeanhelixContent) CommitMessage

func (x *LeanhelixContent) CommitMessage() *CommitContent

func (*LeanhelixContent) Equal

func (x *LeanhelixContent) Equal(y *LeanhelixContent) bool

func (*LeanhelixContent) IsMessageCommitMessage

func (x *LeanhelixContent) IsMessageCommitMessage() bool

func (*LeanhelixContent) IsMessageNewViewMessage

func (x *LeanhelixContent) IsMessageNewViewMessage() bool

func (*LeanhelixContent) IsMessagePrepareMessage

func (x *LeanhelixContent) IsMessagePrepareMessage() bool

func (*LeanhelixContent) IsMessagePreprepareMessage

func (x *LeanhelixContent) IsMessagePreprepareMessage() bool

func (*LeanhelixContent) IsMessageViewChangeMessage

func (x *LeanhelixContent) IsMessageViewChangeMessage() bool

func (*LeanhelixContent) IsValid

func (x *LeanhelixContent) IsValid() bool

func (*LeanhelixContent) Message

func (*LeanhelixContent) NewViewMessage

func (x *LeanhelixContent) NewViewMessage() *NewViewMessageContent

func (*LeanhelixContent) PrepareMessage

func (x *LeanhelixContent) PrepareMessage() *PrepareContent

func (*LeanhelixContent) PreprepareMessage

func (x *LeanhelixContent) PreprepareMessage() *PreprepareContent

func (*LeanhelixContent) Raw

func (x *LeanhelixContent) Raw() []byte

func (*LeanhelixContent) RawMessage

func (x *LeanhelixContent) RawMessage() []byte

func (*LeanhelixContent) RawMessageWithHeader

func (x *LeanhelixContent) RawMessageWithHeader() []byte

func (*LeanhelixContent) String

func (x *LeanhelixContent) String() string

func (*LeanhelixContent) StringCommitMessage

func (x *LeanhelixContent) StringCommitMessage() string

func (*LeanhelixContent) StringMessage

func (x *LeanhelixContent) StringMessage() string

func (*LeanhelixContent) StringNewViewMessage

func (x *LeanhelixContent) StringNewViewMessage() string

func (*LeanhelixContent) StringPrepareMessage

func (x *LeanhelixContent) StringPrepareMessage() string

func (*LeanhelixContent) StringPreprepareMessage

func (x *LeanhelixContent) StringPreprepareMessage() string

func (*LeanhelixContent) StringViewChangeMessage

func (x *LeanhelixContent) StringViewChangeMessage() string

func (*LeanhelixContent) ViewChangeMessage

func (x *LeanhelixContent) ViewChangeMessage() *ViewChangeMessageContent

type LeanhelixContentBuilder

type LeanhelixContentBuilder struct {
	Message           LeanhelixContentMessage
	PreprepareMessage *PreprepareContentBuilder
	PrepareMessage    *PrepareContentBuilder
	CommitMessage     *CommitContentBuilder
	ViewChangeMessage *ViewChangeMessageContentBuilder
	NewViewMessage    *NewViewMessageContentBuilder
	// contains filtered or unexported fields
}

func LeanhelixContentBuilderFromRaw

func LeanhelixContentBuilderFromRaw(raw []byte) *LeanhelixContentBuilder

func (*LeanhelixContentBuilder) Build

func (*LeanhelixContentBuilder) CalcRequiredSize

func (w *LeanhelixContentBuilder) CalcRequiredSize() membuffers.Offset

func (*LeanhelixContentBuilder) GetSize

func (w *LeanhelixContentBuilder) GetSize() membuffers.Offset

func (*LeanhelixContentBuilder) HexDump

func (w *LeanhelixContentBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*LeanhelixContentBuilder) Write

func (w *LeanhelixContentBuilder) Write(buf []byte) (err error)

type LeanhelixContentMessage

type LeanhelixContentMessage uint16
const (
	LEANHELIX_CONTENT_MESSAGE_PREPREPARE_MESSAGE  LeanhelixContentMessage = 0
	LEANHELIX_CONTENT_MESSAGE_PREPARE_MESSAGE     LeanhelixContentMessage = 1
	LEANHELIX_CONTENT_MESSAGE_COMMIT_MESSAGE      LeanhelixContentMessage = 2
	LEANHELIX_CONTENT_MESSAGE_VIEW_CHANGE_MESSAGE LeanhelixContentMessage = 3
	LEANHELIX_CONTENT_MESSAGE_NEW_VIEW_MESSAGE    LeanhelixContentMessage = 4
)

type MessageType

type MessageType uint16
const (
	LEAN_HELIX_RESERVED    MessageType = 0
	LEAN_HELIX_PREPREPARE  MessageType = 1
	LEAN_HELIX_PREPARE     MessageType = 2
	LEAN_HELIX_COMMIT      MessageType = 3
	LEAN_HELIX_NEW_VIEW    MessageType = 4
	LEAN_HELIX_VIEW_CHANGE MessageType = 5
)

func (MessageType) String

func (n MessageType) String() string

type NewViewHeader

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

func NewViewHeaderReader

func NewViewHeaderReader(buf []byte) *NewViewHeader

func (*NewViewHeader) BlockHeight

func (x *NewViewHeader) BlockHeight() primitives.BlockHeight

func (*NewViewHeader) Equal

func (x *NewViewHeader) Equal(y *NewViewHeader) bool

func (*NewViewHeader) InstanceId

func (x *NewViewHeader) InstanceId() primitives.InstanceId

func (*NewViewHeader) IsValid

func (x *NewViewHeader) IsValid() bool

func (*NewViewHeader) MessageType

func (x *NewViewHeader) MessageType() MessageType

func (*NewViewHeader) MutateBlockHeight

func (x *NewViewHeader) MutateBlockHeight(v primitives.BlockHeight) error

func (*NewViewHeader) MutateInstanceId

func (x *NewViewHeader) MutateInstanceId(v primitives.InstanceId) error

func (*NewViewHeader) MutateMessageType

func (x *NewViewHeader) MutateMessageType(v MessageType) error

func (*NewViewHeader) MutateView

func (x *NewViewHeader) MutateView(v primitives.View) error

func (*NewViewHeader) Raw

func (x *NewViewHeader) Raw() []byte

func (*NewViewHeader) RawBlockHeight

func (x *NewViewHeader) RawBlockHeight() []byte

func (*NewViewHeader) RawInstanceId

func (x *NewViewHeader) RawInstanceId() []byte

func (*NewViewHeader) RawMessageType

func (x *NewViewHeader) RawMessageType() []byte

func (*NewViewHeader) RawView

func (x *NewViewHeader) RawView() []byte

func (*NewViewHeader) RawViewChangeConfirmationsArray

func (x *NewViewHeader) RawViewChangeConfirmationsArray() []byte

func (*NewViewHeader) RawViewChangeConfirmationsArrayWithHeader

func (x *NewViewHeader) RawViewChangeConfirmationsArrayWithHeader() []byte

func (*NewViewHeader) String

func (x *NewViewHeader) String() string

func (*NewViewHeader) StringBlockHeight

func (x *NewViewHeader) StringBlockHeight() string

func (*NewViewHeader) StringInstanceId

func (x *NewViewHeader) StringInstanceId() string

func (*NewViewHeader) StringMessageType

func (x *NewViewHeader) StringMessageType() string

func (*NewViewHeader) StringView

func (x *NewViewHeader) StringView() string

func (*NewViewHeader) StringViewChangeConfirmations

func (x *NewViewHeader) StringViewChangeConfirmations() (res string)

func (*NewViewHeader) View

func (x *NewViewHeader) View() primitives.View

func (*NewViewHeader) ViewChangeConfirmationsIterator

func (x *NewViewHeader) ViewChangeConfirmationsIterator() *NewViewHeaderViewChangeConfirmationsIterator

type NewViewHeaderBuilder

type NewViewHeaderBuilder struct {
	InstanceId              primitives.InstanceId
	MessageType             MessageType
	BlockHeight             primitives.BlockHeight
	View                    primitives.View
	ViewChangeConfirmations []*ViewChangeMessageContentBuilder
	// contains filtered or unexported fields
}

func NewViewHeaderBuilderFromRaw

func NewViewHeaderBuilderFromRaw(raw []byte) *NewViewHeaderBuilder

func (*NewViewHeaderBuilder) Build

func (w *NewViewHeaderBuilder) Build() *NewViewHeader

func (*NewViewHeaderBuilder) CalcRequiredSize

func (w *NewViewHeaderBuilder) CalcRequiredSize() membuffers.Offset

func (*NewViewHeaderBuilder) GetSize

func (w *NewViewHeaderBuilder) GetSize() membuffers.Offset

func (*NewViewHeaderBuilder) HexDump

func (w *NewViewHeaderBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*NewViewHeaderBuilder) Write

func (w *NewViewHeaderBuilder) Write(buf []byte) (err error)

type NewViewHeaderViewChangeConfirmationsIterator

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

func (*NewViewHeaderViewChangeConfirmationsIterator) HasNext

func (*NewViewHeaderViewChangeConfirmationsIterator) NextViewChangeConfirmations

type NewViewMessageContent

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

func NewViewMessageContentReader

func NewViewMessageContentReader(buf []byte) *NewViewMessageContent

func (*NewViewMessageContent) Equal

func (*NewViewMessageContent) IsValid

func (x *NewViewMessageContent) IsValid() bool

func (*NewViewMessageContent) Message

func (*NewViewMessageContent) Raw

func (x *NewViewMessageContent) Raw() []byte

func (*NewViewMessageContent) RawMessage

func (x *NewViewMessageContent) RawMessage() []byte

func (*NewViewMessageContent) RawMessageWithHeader

func (x *NewViewMessageContent) RawMessageWithHeader() []byte

func (*NewViewMessageContent) RawSender

func (x *NewViewMessageContent) RawSender() []byte

func (*NewViewMessageContent) RawSenderWithHeader

func (x *NewViewMessageContent) RawSenderWithHeader() []byte

func (*NewViewMessageContent) RawSignedHeader

func (x *NewViewMessageContent) RawSignedHeader() []byte

func (*NewViewMessageContent) RawSignedHeaderWithHeader

func (x *NewViewMessageContent) RawSignedHeaderWithHeader() []byte

func (*NewViewMessageContent) Sender

func (*NewViewMessageContent) SignedHeader

func (x *NewViewMessageContent) SignedHeader() *NewViewHeader

func (*NewViewMessageContent) String

func (x *NewViewMessageContent) String() string

func (*NewViewMessageContent) StringMessage

func (x *NewViewMessageContent) StringMessage() string

func (*NewViewMessageContent) StringSender

func (x *NewViewMessageContent) StringSender() string

func (*NewViewMessageContent) StringSignedHeader

func (x *NewViewMessageContent) StringSignedHeader() string

type NewViewMessageContentBuilder

type NewViewMessageContentBuilder struct {
	SignedHeader *NewViewHeaderBuilder
	Sender       *SenderSignatureBuilder
	Message      *PreprepareContentBuilder
	// contains filtered or unexported fields
}

func NewViewMessageContentBuilderFromRaw

func NewViewMessageContentBuilderFromRaw(raw []byte) *NewViewMessageContentBuilder

func (*NewViewMessageContentBuilder) Build

func (*NewViewMessageContentBuilder) CalcRequiredSize

func (w *NewViewMessageContentBuilder) CalcRequiredSize() membuffers.Offset

func (*NewViewMessageContentBuilder) GetSize

func (w *NewViewMessageContentBuilder) GetSize() membuffers.Offset

func (*NewViewMessageContentBuilder) HexDump

func (w *NewViewMessageContentBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*NewViewMessageContentBuilder) Write

func (w *NewViewMessageContentBuilder) Write(buf []byte) (err error)

type PrepareContent

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

func PrepareContentReader

func PrepareContentReader(buf []byte) *PrepareContent

func (*PrepareContent) Equal

func (x *PrepareContent) Equal(y *PrepareContent) bool

func (*PrepareContent) IsValid

func (x *PrepareContent) IsValid() bool

func (*PrepareContent) Raw

func (x *PrepareContent) Raw() []byte

func (*PrepareContent) RawSender

func (x *PrepareContent) RawSender() []byte

func (*PrepareContent) RawSenderWithHeader

func (x *PrepareContent) RawSenderWithHeader() []byte

func (*PrepareContent) RawSignedHeader

func (x *PrepareContent) RawSignedHeader() []byte

func (*PrepareContent) RawSignedHeaderWithHeader

func (x *PrepareContent) RawSignedHeaderWithHeader() []byte

func (*PrepareContent) Sender

func (x *PrepareContent) Sender() *SenderSignature

func (*PrepareContent) SignedHeader

func (x *PrepareContent) SignedHeader() *BlockRef

func (*PrepareContent) String

func (x *PrepareContent) String() string

func (*PrepareContent) StringSender

func (x *PrepareContent) StringSender() string

func (*PrepareContent) StringSignedHeader

func (x *PrepareContent) StringSignedHeader() string

type PrepareContentBuilder

type PrepareContentBuilder struct {
	SignedHeader *BlockRefBuilder
	Sender       *SenderSignatureBuilder
	// contains filtered or unexported fields
}

func PrepareContentBuilderFromRaw

func PrepareContentBuilderFromRaw(raw []byte) *PrepareContentBuilder

func (*PrepareContentBuilder) Build

func (*PrepareContentBuilder) CalcRequiredSize

func (w *PrepareContentBuilder) CalcRequiredSize() membuffers.Offset

func (*PrepareContentBuilder) GetSize

func (w *PrepareContentBuilder) GetSize() membuffers.Offset

func (*PrepareContentBuilder) HexDump

func (w *PrepareContentBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*PrepareContentBuilder) Write

func (w *PrepareContentBuilder) Write(buf []byte) (err error)

type PreparedProof

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

func PreparedProofReader

func PreparedProofReader(buf []byte) *PreparedProof

func (*PreparedProof) Equal

func (x *PreparedProof) Equal(y *PreparedProof) bool

func (*PreparedProof) IsValid

func (x *PreparedProof) IsValid() bool

func (*PreparedProof) PrepareBlockRef

func (x *PreparedProof) PrepareBlockRef() *BlockRef

func (*PreparedProof) PrepareSendersIterator

func (x *PreparedProof) PrepareSendersIterator() *PreparedProofPrepareSendersIterator

func (*PreparedProof) PreprepareBlockRef

func (x *PreparedProof) PreprepareBlockRef() *BlockRef

func (*PreparedProof) PreprepareSender

func (x *PreparedProof) PreprepareSender() *SenderSignature

func (*PreparedProof) Raw

func (x *PreparedProof) Raw() []byte

func (*PreparedProof) RawPrepareBlockRef

func (x *PreparedProof) RawPrepareBlockRef() []byte

func (*PreparedProof) RawPrepareBlockRefWithHeader

func (x *PreparedProof) RawPrepareBlockRefWithHeader() []byte

func (*PreparedProof) RawPrepareSendersArray

func (x *PreparedProof) RawPrepareSendersArray() []byte

func (*PreparedProof) RawPrepareSendersArrayWithHeader

func (x *PreparedProof) RawPrepareSendersArrayWithHeader() []byte

func (*PreparedProof) RawPreprepareBlockRef

func (x *PreparedProof) RawPreprepareBlockRef() []byte

func (*PreparedProof) RawPreprepareBlockRefWithHeader

func (x *PreparedProof) RawPreprepareBlockRefWithHeader() []byte

func (*PreparedProof) RawPreprepareSender

func (x *PreparedProof) RawPreprepareSender() []byte

func (*PreparedProof) RawPreprepareSenderWithHeader

func (x *PreparedProof) RawPreprepareSenderWithHeader() []byte

func (*PreparedProof) String

func (x *PreparedProof) String() string

func (*PreparedProof) StringPrepareBlockRef

func (x *PreparedProof) StringPrepareBlockRef() string

func (*PreparedProof) StringPrepareSenders

func (x *PreparedProof) StringPrepareSenders() (res string)

func (*PreparedProof) StringPreprepareBlockRef

func (x *PreparedProof) StringPreprepareBlockRef() string

func (*PreparedProof) StringPreprepareSender

func (x *PreparedProof) StringPreprepareSender() string

type PreparedProofBuilder

type PreparedProofBuilder struct {
	PreprepareBlockRef *BlockRefBuilder
	PreprepareSender   *SenderSignatureBuilder
	PrepareBlockRef    *BlockRefBuilder
	PrepareSenders     []*SenderSignatureBuilder
	// contains filtered or unexported fields
}

func PreparedProofBuilderFromRaw

func PreparedProofBuilderFromRaw(raw []byte) *PreparedProofBuilder

func (*PreparedProofBuilder) Build

func (w *PreparedProofBuilder) Build() *PreparedProof

func (*PreparedProofBuilder) CalcRequiredSize

func (w *PreparedProofBuilder) CalcRequiredSize() membuffers.Offset

func (*PreparedProofBuilder) GetSize

func (w *PreparedProofBuilder) GetSize() membuffers.Offset

func (*PreparedProofBuilder) HexDump

func (w *PreparedProofBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*PreparedProofBuilder) Write

func (w *PreparedProofBuilder) Write(buf []byte) (err error)

type PreparedProofPrepareSendersIterator

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

func (*PreparedProofPrepareSendersIterator) HasNext

func (*PreparedProofPrepareSendersIterator) NextPrepareSenders

func (i *PreparedProofPrepareSendersIterator) NextPrepareSenders() *SenderSignature

type PreprepareContent

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

func PreprepareContentReader

func PreprepareContentReader(buf []byte) *PreprepareContent

func (*PreprepareContent) Equal

func (*PreprepareContent) IsValid

func (x *PreprepareContent) IsValid() bool

func (*PreprepareContent) Raw

func (x *PreprepareContent) Raw() []byte

func (*PreprepareContent) RawSender

func (x *PreprepareContent) RawSender() []byte

func (*PreprepareContent) RawSenderWithHeader

func (x *PreprepareContent) RawSenderWithHeader() []byte

func (*PreprepareContent) RawSignedHeader

func (x *PreprepareContent) RawSignedHeader() []byte

func (*PreprepareContent) RawSignedHeaderWithHeader

func (x *PreprepareContent) RawSignedHeaderWithHeader() []byte

func (*PreprepareContent) Sender

func (x *PreprepareContent) Sender() *SenderSignature

func (*PreprepareContent) SignedHeader

func (x *PreprepareContent) SignedHeader() *BlockRef

func (*PreprepareContent) String

func (x *PreprepareContent) String() string

func (*PreprepareContent) StringSender

func (x *PreprepareContent) StringSender() string

func (*PreprepareContent) StringSignedHeader

func (x *PreprepareContent) StringSignedHeader() string

type PreprepareContentBuilder

type PreprepareContentBuilder struct {
	SignedHeader *BlockRefBuilder
	Sender       *SenderSignatureBuilder
	// contains filtered or unexported fields
}

func PreprepareContentBuilderFromRaw

func PreprepareContentBuilderFromRaw(raw []byte) *PreprepareContentBuilder

func (*PreprepareContentBuilder) Build

func (*PreprepareContentBuilder) CalcRequiredSize

func (w *PreprepareContentBuilder) CalcRequiredSize() membuffers.Offset

func (*PreprepareContentBuilder) GetSize

func (w *PreprepareContentBuilder) GetSize() membuffers.Offset

func (*PreprepareContentBuilder) HexDump

func (w *PreprepareContentBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*PreprepareContentBuilder) Write

func (w *PreprepareContentBuilder) Write(buf []byte) (err error)

type SenderSignature

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

func SenderSignatureReader

func SenderSignatureReader(buf []byte) *SenderSignature

func (*SenderSignature) Equal

func (x *SenderSignature) Equal(y *SenderSignature) bool

func (*SenderSignature) IsValid

func (x *SenderSignature) IsValid() bool

func (*SenderSignature) MemberId

func (x *SenderSignature) MemberId() primitives.MemberId

func (*SenderSignature) MutateMemberId

func (x *SenderSignature) MutateMemberId(v primitives.MemberId) error

func (*SenderSignature) MutateSignature

func (x *SenderSignature) MutateSignature(v primitives.Signature) error

func (*SenderSignature) Raw

func (x *SenderSignature) Raw() []byte

func (*SenderSignature) RawMemberId

func (x *SenderSignature) RawMemberId() []byte

func (*SenderSignature) RawMemberIdWithHeader added in v0.3.0

func (x *SenderSignature) RawMemberIdWithHeader() []byte

func (*SenderSignature) RawSignature

func (x *SenderSignature) RawSignature() []byte

func (*SenderSignature) RawSignatureWithHeader added in v0.3.0

func (x *SenderSignature) RawSignatureWithHeader() []byte

func (*SenderSignature) Signature

func (x *SenderSignature) Signature() primitives.Signature

func (*SenderSignature) String

func (x *SenderSignature) String() string

func (*SenderSignature) StringMemberId

func (x *SenderSignature) StringMemberId() string

func (*SenderSignature) StringSignature

func (x *SenderSignature) StringSignature() string

type SenderSignatureBuilder

type SenderSignatureBuilder struct {
	MemberId  primitives.MemberId
	Signature primitives.Signature
	// contains filtered or unexported fields
}

func SenderSignatureBuilderFromRaw

func SenderSignatureBuilderFromRaw(raw []byte) *SenderSignatureBuilder

func (*SenderSignatureBuilder) Build

func (*SenderSignatureBuilder) CalcRequiredSize

func (w *SenderSignatureBuilder) CalcRequiredSize() membuffers.Offset

func (*SenderSignatureBuilder) GetSize

func (w *SenderSignatureBuilder) GetSize() membuffers.Offset

func (*SenderSignatureBuilder) HexDump

func (w *SenderSignatureBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*SenderSignatureBuilder) Write

func (w *SenderSignatureBuilder) Write(buf []byte) (err error)

type ViewChangeHeader

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

func ViewChangeHeaderReader

func ViewChangeHeaderReader(buf []byte) *ViewChangeHeader

func (*ViewChangeHeader) BlockHeight

func (x *ViewChangeHeader) BlockHeight() primitives.BlockHeight

func (*ViewChangeHeader) Equal

func (x *ViewChangeHeader) Equal(y *ViewChangeHeader) bool

func (*ViewChangeHeader) InstanceId

func (x *ViewChangeHeader) InstanceId() primitives.InstanceId

func (*ViewChangeHeader) IsValid

func (x *ViewChangeHeader) IsValid() bool

func (*ViewChangeHeader) MessageType

func (x *ViewChangeHeader) MessageType() MessageType

func (*ViewChangeHeader) MutateBlockHeight

func (x *ViewChangeHeader) MutateBlockHeight(v primitives.BlockHeight) error

func (*ViewChangeHeader) MutateInstanceId

func (x *ViewChangeHeader) MutateInstanceId(v primitives.InstanceId) error

func (*ViewChangeHeader) MutateMessageType

func (x *ViewChangeHeader) MutateMessageType(v MessageType) error

func (*ViewChangeHeader) MutateView

func (x *ViewChangeHeader) MutateView(v primitives.View) error

func (*ViewChangeHeader) PreparedProof

func (x *ViewChangeHeader) PreparedProof() *PreparedProof

func (*ViewChangeHeader) Raw

func (x *ViewChangeHeader) Raw() []byte

func (*ViewChangeHeader) RawBlockHeight

func (x *ViewChangeHeader) RawBlockHeight() []byte

func (*ViewChangeHeader) RawInstanceId

func (x *ViewChangeHeader) RawInstanceId() []byte

func (*ViewChangeHeader) RawMessageType

func (x *ViewChangeHeader) RawMessageType() []byte

func (*ViewChangeHeader) RawPreparedProof

func (x *ViewChangeHeader) RawPreparedProof() []byte

func (*ViewChangeHeader) RawPreparedProofWithHeader

func (x *ViewChangeHeader) RawPreparedProofWithHeader() []byte

func (*ViewChangeHeader) RawView

func (x *ViewChangeHeader) RawView() []byte

func (*ViewChangeHeader) String

func (x *ViewChangeHeader) String() string

func (*ViewChangeHeader) StringBlockHeight

func (x *ViewChangeHeader) StringBlockHeight() string

func (*ViewChangeHeader) StringInstanceId

func (x *ViewChangeHeader) StringInstanceId() string

func (*ViewChangeHeader) StringMessageType

func (x *ViewChangeHeader) StringMessageType() string

func (*ViewChangeHeader) StringPreparedProof

func (x *ViewChangeHeader) StringPreparedProof() string

func (*ViewChangeHeader) StringView

func (x *ViewChangeHeader) StringView() string

func (*ViewChangeHeader) View

func (x *ViewChangeHeader) View() primitives.View

type ViewChangeHeaderBuilder

type ViewChangeHeaderBuilder struct {
	InstanceId    primitives.InstanceId
	MessageType   MessageType
	BlockHeight   primitives.BlockHeight
	View          primitives.View
	PreparedProof *PreparedProofBuilder
	// contains filtered or unexported fields
}

func ViewChangeHeaderBuilderFromRaw

func ViewChangeHeaderBuilderFromRaw(raw []byte) *ViewChangeHeaderBuilder

func (*ViewChangeHeaderBuilder) Build

func (*ViewChangeHeaderBuilder) CalcRequiredSize

func (w *ViewChangeHeaderBuilder) CalcRequiredSize() membuffers.Offset

func (*ViewChangeHeaderBuilder) GetSize

func (w *ViewChangeHeaderBuilder) GetSize() membuffers.Offset

func (*ViewChangeHeaderBuilder) HexDump

func (w *ViewChangeHeaderBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*ViewChangeHeaderBuilder) Write

func (w *ViewChangeHeaderBuilder) Write(buf []byte) (err error)

type ViewChangeMessageContent

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

func ViewChangeMessageContentReader

func ViewChangeMessageContentReader(buf []byte) *ViewChangeMessageContent

func (*ViewChangeMessageContent) Equal

func (*ViewChangeMessageContent) IsValid

func (x *ViewChangeMessageContent) IsValid() bool

func (*ViewChangeMessageContent) Raw

func (x *ViewChangeMessageContent) Raw() []byte

func (*ViewChangeMessageContent) RawSender

func (x *ViewChangeMessageContent) RawSender() []byte

func (*ViewChangeMessageContent) RawSenderWithHeader

func (x *ViewChangeMessageContent) RawSenderWithHeader() []byte

func (*ViewChangeMessageContent) RawSignedHeader

func (x *ViewChangeMessageContent) RawSignedHeader() []byte

func (*ViewChangeMessageContent) RawSignedHeaderWithHeader

func (x *ViewChangeMessageContent) RawSignedHeaderWithHeader() []byte

func (*ViewChangeMessageContent) Sender

func (*ViewChangeMessageContent) SignedHeader

func (x *ViewChangeMessageContent) SignedHeader() *ViewChangeHeader

func (*ViewChangeMessageContent) String

func (x *ViewChangeMessageContent) String() string

func (*ViewChangeMessageContent) StringSender

func (x *ViewChangeMessageContent) StringSender() string

func (*ViewChangeMessageContent) StringSignedHeader

func (x *ViewChangeMessageContent) StringSignedHeader() string

type ViewChangeMessageContentBuilder

type ViewChangeMessageContentBuilder struct {
	SignedHeader *ViewChangeHeaderBuilder
	Sender       *SenderSignatureBuilder
	// contains filtered or unexported fields
}

func ViewChangeMessageContentBuilderFromRaw

func ViewChangeMessageContentBuilderFromRaw(raw []byte) *ViewChangeMessageContentBuilder

func (*ViewChangeMessageContentBuilder) Build

func (*ViewChangeMessageContentBuilder) CalcRequiredSize

func (w *ViewChangeMessageContentBuilder) CalcRequiredSize() membuffers.Offset

func (*ViewChangeMessageContentBuilder) GetSize

func (w *ViewChangeMessageContentBuilder) GetSize() membuffers.Offset

func (*ViewChangeMessageContentBuilder) HexDump

func (w *ViewChangeMessageContentBuilder) HexDump(prefix string, offsetFromStart membuffers.Offset) (err error)

func (*ViewChangeMessageContentBuilder) Write

func (w *ViewChangeMessageContentBuilder) Write(buf []byte) (err error)

Jump to

Keyboard shortcuts

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