cometbft

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Copyright 2025 The Accumulate Authors

Use of this source code is governed by an MIT-style license that can be found in the LICENSE file or at https://opensource.org/licenses/MIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Block

type Block types.Block

func (*Block) Copy

func (b *Block) Copy() *Block

func (*Block) Equal

func (b *Block) Equal(c *Block) bool

func (*Block) FromProto

func (b *Block) FromProto(c cmtproto.Block)

func (*Block) MarshalBinary

func (b *Block) MarshalBinary() ([]byte, error)

func (*Block) ToProto

func (b *Block) ToProto() cmtproto.Block

func (*Block) UnmarshalBinary

func (b *Block) UnmarshalBinary(d []byte) error

func (*Block) UnmarshalBinaryFrom

func (b *Block) UnmarshalBinaryFrom(rd io.Reader) error

type ConsensusParams

type ConsensusParams types.ConsensusParams

func (*ConsensusParams) Copy

func (c *ConsensusParams) Copy() *ConsensusParams

func (*ConsensusParams) Equal

func (c *ConsensusParams) Equal(d *ConsensusParams) bool

func (*ConsensusParams) FromProto

func (c *ConsensusParams) FromProto(d cmtproto.ConsensusParams)

func (*ConsensusParams) MarshalBinary

func (c *ConsensusParams) MarshalBinary() ([]byte, error)

func (*ConsensusParams) ToProto

func (*ConsensusParams) UnmarshalBinary

func (c *ConsensusParams) UnmarshalBinary(b []byte) error

func (*ConsensusParams) UnmarshalBinaryFrom

func (c *ConsensusParams) UnmarshalBinaryFrom(rd io.Reader) error

type GenesisDoc

type GenesisDoc struct {
	ChainID    string
	Params     *ConsensusParams
	Validators []*Validator
	Block      *Block
}

func (*GenesisDoc) Copy

func (v *GenesisDoc) Copy() *GenesisDoc

Copy returns a copy of the GenesisDoc.

func (*GenesisDoc) Equal

func (v *GenesisDoc) Equal(u *GenesisDoc) bool

EqualGenesisDoc returns true if V is equal to U.

func (*GenesisDoc) MarshalBinary

func (v *GenesisDoc) MarshalBinary() ([]byte, error)

MarshalBinary marshals the GenesisDoc to bytes using binary.

func (*GenesisDoc) MarshalBinaryV2

func (v *GenesisDoc) MarshalBinaryV2(enc *binary.Encoder) error

MarshalBinary marshals the GenesisDoc to a binary.Encoder.

func (*GenesisDoc) MarshalJSON

func (v *GenesisDoc) MarshalJSON() ([]byte, error)

MarshalBinary marshals the GenesisDoc to JSON.

func (*GenesisDoc) UnmarshalBinary

func (v *GenesisDoc) UnmarshalBinary(b []byte) error

UnmarshalBinary unmarshals the GenesisDoc from bytes using binary.

func (*GenesisDoc) UnmarshalBinaryFrom

func (v *GenesisDoc) UnmarshalBinaryFrom(rd io.Reader) error

func (*GenesisDoc) UnmarshalBinaryV2

func (v *GenesisDoc) UnmarshalBinaryV2(dec *binary.Decoder) error

UnmarshalBinary unmarshals the GenesisDoc from a binary.Decoder.

func (*GenesisDoc) UnmarshalJSON

func (v *GenesisDoc) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the GenesisDoc from JSON.

type Validator

type Validator struct {
	Address []byte
	Type    protocol.SignatureType
	PubKey  []byte
	Power   int64
	Name    string
}

func (*Validator) Copy

func (v *Validator) Copy() *Validator

Copy returns a copy of the Validator.

func (*Validator) Equal

func (v *Validator) Equal(u *Validator) bool

EqualValidator returns true if V is equal to U.

func (*Validator) MarshalBinary

func (v *Validator) MarshalBinary() ([]byte, error)

MarshalBinary marshals the Validator to bytes using binary.

func (*Validator) MarshalBinaryV2

func (v *Validator) MarshalBinaryV2(enc *binary.Encoder) error

MarshalBinary marshals the Validator to a binary.Encoder.

func (*Validator) MarshalJSON

func (v *Validator) MarshalJSON() ([]byte, error)

MarshalBinary marshals the Validator to JSON.

func (*Validator) UnmarshalBinary

func (v *Validator) UnmarshalBinary(b []byte) error

UnmarshalBinary unmarshals the Validator from bytes using binary.

func (*Validator) UnmarshalBinaryV2

func (v *Validator) UnmarshalBinaryV2(dec *binary.Decoder) error

UnmarshalBinary unmarshals the Validator from a binary.Decoder.

func (*Validator) UnmarshalJSON

func (v *Validator) UnmarshalJSON(b []byte) error

UnmarshalJSON unmarshals the Validator from JSON.

Jump to

Keyboard shortcuts

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