consensus

package
v0.0.0-...-bf1cce6 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: MIT Imports: 4 Imported by: 10

Documentation

Overview

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

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

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BenchmarkConsensusBlockProof

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

func BenchmarkConsensusBlockProofReader

func BenchmarkConsensusBlockProofReader(buf []byte) *BenchmarkConsensusBlockProof

func (*BenchmarkConsensusBlockProof) BlockRef

func (*BenchmarkConsensusBlockProof) Equal

func (*BenchmarkConsensusBlockProof) IsValid

func (x *BenchmarkConsensusBlockProof) IsValid() bool

func (*BenchmarkConsensusBlockProof) MutatePlaceholder

func (x *BenchmarkConsensusBlockProof) MutatePlaceholder(v []byte) error

func (*BenchmarkConsensusBlockProof) NodesIterator

func (*BenchmarkConsensusBlockProof) Placeholder

func (x *BenchmarkConsensusBlockProof) Placeholder() []byte

func (*BenchmarkConsensusBlockProof) Raw

func (*BenchmarkConsensusBlockProof) RawBlockRef

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

func (*BenchmarkConsensusBlockProof) RawBlockRefWithHeader

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

func (*BenchmarkConsensusBlockProof) RawNodesArray

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

func (*BenchmarkConsensusBlockProof) RawNodesArrayWithHeader

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

func (*BenchmarkConsensusBlockProof) RawPlaceholder

func (x *BenchmarkConsensusBlockProof) RawPlaceholder() []byte

func (*BenchmarkConsensusBlockProof) RawPlaceholderWithHeader

func (x *BenchmarkConsensusBlockProof) RawPlaceholderWithHeader() []byte

func (*BenchmarkConsensusBlockProof) String

func (*BenchmarkConsensusBlockProof) StringBlockRef

func (x *BenchmarkConsensusBlockProof) StringBlockRef() string

func (*BenchmarkConsensusBlockProof) StringNodes

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

func (*BenchmarkConsensusBlockProof) StringPlaceholder

func (x *BenchmarkConsensusBlockProof) StringPlaceholder() string

type BenchmarkConsensusBlockProofBuilder

type BenchmarkConsensusBlockProofBuilder struct {
	BlockRef    *BenchmarkConsensusBlockRefBuilder
	Nodes       []*BenchmarkConsensusSenderSignatureBuilder
	Placeholder []byte
	// contains filtered or unexported fields
}

func BenchmarkConsensusBlockProofBuilderFromRaw

func BenchmarkConsensusBlockProofBuilderFromRaw(raw []byte) *BenchmarkConsensusBlockProofBuilder

func (*BenchmarkConsensusBlockProofBuilder) Build

func (*BenchmarkConsensusBlockProofBuilder) CalcRequiredSize

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

func (*BenchmarkConsensusBlockProofBuilder) GetSize

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

func (*BenchmarkConsensusBlockProofBuilder) HexDump

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

func (*BenchmarkConsensusBlockProofBuilder) Write

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

type BenchmarkConsensusBlockProofNodesIterator

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

func (*BenchmarkConsensusBlockProofNodesIterator) HasNext

func (*BenchmarkConsensusBlockProofNodesIterator) NextNodes

type BenchmarkConsensusBlockRef

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

func BenchmarkConsensusBlockRefReader

func BenchmarkConsensusBlockRefReader(buf []byte) *BenchmarkConsensusBlockRef

func (*BenchmarkConsensusBlockRef) BlockHash

func (*BenchmarkConsensusBlockRef) BlockHeight

func (*BenchmarkConsensusBlockRef) Equal

func (*BenchmarkConsensusBlockRef) IsValid

func (x *BenchmarkConsensusBlockRef) IsValid() bool

func (*BenchmarkConsensusBlockRef) MutateBlockHash

func (x *BenchmarkConsensusBlockRef) MutateBlockHash(v primitives.Sha256) error

func (*BenchmarkConsensusBlockRef) MutateBlockHeight

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

func (*BenchmarkConsensusBlockRef) MutatePlaceholderType

func (*BenchmarkConsensusBlockRef) MutatePlaceholderView

func (x *BenchmarkConsensusBlockRef) MutatePlaceholderView(v uint64) error

func (*BenchmarkConsensusBlockRef) PlaceholderType

func (*BenchmarkConsensusBlockRef) PlaceholderView

func (x *BenchmarkConsensusBlockRef) PlaceholderView() uint64

func (*BenchmarkConsensusBlockRef) Raw

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

func (*BenchmarkConsensusBlockRef) RawBlockHash

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

func (*BenchmarkConsensusBlockRef) RawBlockHashWithHeader

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

func (*BenchmarkConsensusBlockRef) RawBlockHeight

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

func (*BenchmarkConsensusBlockRef) RawPlaceholderType

func (x *BenchmarkConsensusBlockRef) RawPlaceholderType() []byte

func (*BenchmarkConsensusBlockRef) RawPlaceholderView

func (x *BenchmarkConsensusBlockRef) RawPlaceholderView() []byte

func (*BenchmarkConsensusBlockRef) String

func (x *BenchmarkConsensusBlockRef) String() string

func (*BenchmarkConsensusBlockRef) StringBlockHash

func (x *BenchmarkConsensusBlockRef) StringBlockHash() string

func (*BenchmarkConsensusBlockRef) StringBlockHeight

func (x *BenchmarkConsensusBlockRef) StringBlockHeight() string

func (*BenchmarkConsensusBlockRef) StringPlaceholderType

func (x *BenchmarkConsensusBlockRef) StringPlaceholderType() string

func (*BenchmarkConsensusBlockRef) StringPlaceholderView

func (x *BenchmarkConsensusBlockRef) StringPlaceholderView() string

type BenchmarkConsensusBlockRefBuilder

type BenchmarkConsensusBlockRefBuilder struct {
	PlaceholderType BenchmarkConsensusPlaceholder
	BlockHeight     primitives.BlockHeight
	PlaceholderView uint64
	BlockHash       primitives.Sha256
	// contains filtered or unexported fields
}

func BenchmarkConsensusBlockRefBuilderFromRaw

func BenchmarkConsensusBlockRefBuilderFromRaw(raw []byte) *BenchmarkConsensusBlockRefBuilder

func (*BenchmarkConsensusBlockRefBuilder) Build

func (*BenchmarkConsensusBlockRefBuilder) CalcRequiredSize

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

func (*BenchmarkConsensusBlockRefBuilder) GetSize

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

func (*BenchmarkConsensusBlockRefBuilder) HexDump

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

func (*BenchmarkConsensusBlockRefBuilder) Write

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

type BenchmarkConsensusMessageType

type BenchmarkConsensusMessageType uint16
const (
	BENCHMARK_CONSENSUS_RESERVED  BenchmarkConsensusMessageType = 0
	BENCHMARK_CONSENSUS_COMMIT    BenchmarkConsensusMessageType = 1
	BENCHMARK_CONSENSUS_COMMITTED BenchmarkConsensusMessageType = 2
)

func (BenchmarkConsensusMessageType) String

type BenchmarkConsensusPlaceholder

type BenchmarkConsensusPlaceholder uint16
const (
	BENCHMARK_CONSENSUS_INVALID_0 BenchmarkConsensusPlaceholder = 0
	BENCHMARK_CONSENSUS_INVALID_1 BenchmarkConsensusPlaceholder = 1
	BENCHMARK_CONSENSUS_INVALID_2 BenchmarkConsensusPlaceholder = 2
	BENCHMARK_CONSENSUS_VALID     BenchmarkConsensusPlaceholder = 3
)

func (BenchmarkConsensusPlaceholder) String

type BenchmarkConsensusSenderSignature

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

func BenchmarkConsensusSenderSignatureReader

func BenchmarkConsensusSenderSignatureReader(buf []byte) *BenchmarkConsensusSenderSignature

func (*BenchmarkConsensusSenderSignature) Equal

func (*BenchmarkConsensusSenderSignature) IsValid

func (*BenchmarkConsensusSenderSignature) MutateSenderNodeAddress

func (x *BenchmarkConsensusSenderSignature) MutateSenderNodeAddress(v primitives.NodeAddress) error

func (*BenchmarkConsensusSenderSignature) MutateSignature

func (*BenchmarkConsensusSenderSignature) Raw

func (*BenchmarkConsensusSenderSignature) RawSenderNodeAddress

func (x *BenchmarkConsensusSenderSignature) RawSenderNodeAddress() []byte

func (*BenchmarkConsensusSenderSignature) RawSenderNodeAddressWithHeader

func (x *BenchmarkConsensusSenderSignature) RawSenderNodeAddressWithHeader() []byte

func (*BenchmarkConsensusSenderSignature) RawSignature

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

func (*BenchmarkConsensusSenderSignature) RawSignatureWithHeader

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

func (*BenchmarkConsensusSenderSignature) SenderNodeAddress

func (*BenchmarkConsensusSenderSignature) Signature

func (*BenchmarkConsensusSenderSignature) String

func (*BenchmarkConsensusSenderSignature) StringSenderNodeAddress

func (x *BenchmarkConsensusSenderSignature) StringSenderNodeAddress() string

func (*BenchmarkConsensusSenderSignature) StringSignature

func (x *BenchmarkConsensusSenderSignature) StringSignature() string

type BenchmarkConsensusSenderSignatureBuilder

type BenchmarkConsensusSenderSignatureBuilder struct {
	SenderNodeAddress primitives.NodeAddress
	Signature         primitives.EcdsaSecp256K1Sig
	// contains filtered or unexported fields
}

func BenchmarkConsensusSenderSignatureBuilderFromRaw

func BenchmarkConsensusSenderSignatureBuilderFromRaw(raw []byte) *BenchmarkConsensusSenderSignatureBuilder

func (*BenchmarkConsensusSenderSignatureBuilder) Build

func (*BenchmarkConsensusSenderSignatureBuilder) CalcRequiredSize

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

func (*BenchmarkConsensusSenderSignatureBuilder) GetSize

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

func (*BenchmarkConsensusSenderSignatureBuilder) HexDump

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

func (*BenchmarkConsensusSenderSignatureBuilder) Write

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

type ConsensusAlgoType

type ConsensusAlgoType uint16
const (
	CONSENSUS_ALGO_TYPE_RESERVED            ConsensusAlgoType = 0
	CONSENSUS_ALGO_TYPE_BENCHMARK_CONSENSUS ConsensusAlgoType = 1
	CONSENSUS_ALGO_TYPE_LEAN_HELIX          ConsensusAlgoType = 2
)

func (ConsensusAlgoType) String

func (n ConsensusAlgoType) String() string

type LeanHelixMessageType

type LeanHelixMessageType uint16
const (
	LEAN_HELIX_MESSAGE_TYPE_RESERVED   LeanHelixMessageType = 0
	LEAN_HELIX_MESSAGE_TYPE_LEAN_HELIX LeanHelixMessageType = 1
)

func (LeanHelixMessageType) String

func (n LeanHelixMessageType) String() string

Jump to

Keyboard shortcuts

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