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 ¶
- type Block
- func (b *Block) Copy() *Block
- func (b *Block) Equal(c *Block) bool
- func (b *Block) FromProto(c cmtproto.Block)
- func (b *Block) MarshalBinary() ([]byte, error)
- func (b *Block) ToProto() cmtproto.Block
- func (b *Block) UnmarshalBinary(d []byte) error
- func (b *Block) UnmarshalBinaryFrom(rd io.Reader) error
- type ConsensusParams
- func (c *ConsensusParams) Copy() *ConsensusParams
- func (c *ConsensusParams) Equal(d *ConsensusParams) bool
- func (c *ConsensusParams) FromProto(d cmtproto.ConsensusParams)
- func (c *ConsensusParams) MarshalBinary() ([]byte, error)
- func (c *ConsensusParams) ToProto() cmtproto.ConsensusParams
- func (c *ConsensusParams) UnmarshalBinary(b []byte) error
- func (c *ConsensusParams) UnmarshalBinaryFrom(rd io.Reader) error
- type GenesisDoc
- func (v *GenesisDoc) Copy() *GenesisDoc
- func (v *GenesisDoc) Equal(u *GenesisDoc) bool
- func (v *GenesisDoc) MarshalBinary() ([]byte, error)
- func (v *GenesisDoc) MarshalBinaryV2(enc *binary.Encoder) error
- func (v *GenesisDoc) MarshalJSON() ([]byte, error)
- func (v *GenesisDoc) UnmarshalBinary(b []byte) error
- func (v *GenesisDoc) UnmarshalBinaryFrom(rd io.Reader) error
- func (v *GenesisDoc) UnmarshalBinaryV2(dec *binary.Decoder) error
- func (v *GenesisDoc) UnmarshalJSON(b []byte) error
- type Validator
- func (v *Validator) Copy() *Validator
- func (v *Validator) Equal(u *Validator) bool
- func (v *Validator) MarshalBinary() ([]byte, error)
- func (v *Validator) MarshalBinaryV2(enc *binary.Encoder) error
- func (v *Validator) MarshalJSON() ([]byte, error)
- func (v *Validator) UnmarshalBinary(b []byte) error
- func (v *Validator) UnmarshalBinaryV2(dec *binary.Decoder) error
- func (v *Validator) UnmarshalJSON(b []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 (c *ConsensusParams) ToProto() cmtproto.ConsensusParams
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) MarshalBinary ¶
MarshalBinary marshals the Validator to bytes using binary.
func (*Validator) MarshalBinaryV2 ¶
MarshalBinary marshals the Validator to a binary.Encoder.
func (*Validator) MarshalJSON ¶
MarshalBinary marshals the Validator to JSON.
func (*Validator) UnmarshalBinary ¶
UnmarshalBinary unmarshals the Validator from bytes using binary.
func (*Validator) UnmarshalBinaryV2 ¶
UnmarshalBinary unmarshals the Validator from a binary.Decoder.
func (*Validator) UnmarshalJSON ¶
UnmarshalJSON unmarshals the Validator from JSON.