capn

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 23, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultRound              = uint32(0)
	DefaultHeight             = uint32(0)
	DefaultChainID            = uint32(0)
	DefaultNumberTransactions = uint32(0)
)

Constants defined in consensus.capnp.

View Source
const BClaims_TypeID = 0x9113e3f94e338143

BClaims_TypeID is the unique identifier for the type BClaims.

View Source
const BlockHeader_TypeID = 0xcbaccef171f6e853

BlockHeader_TypeID is the unique identifier for the type BlockHeader.

View Source
const EncryptedStore_TypeID = 0xdfd8af3691b0caaa

EncryptedStore_TypeID is the unique identifier for the type EncryptedStore.

View Source
const NHClaims_TypeID = 0xcc032017c6d81c9e

NHClaims_TypeID is the unique identifier for the type NHClaims.

View Source
const NRClaims_TypeID = 0xa5bcb08c7a601f19

NRClaims_TypeID is the unique identifier for the type NRClaims.

View Source
const NextHeight_TypeID = 0xf15d280e55952413

NextHeight_TypeID is the unique identifier for the type NextHeight.

View Source
const NextRound_TypeID = 0xdf3021ba1919105b

NextRound_TypeID is the unique identifier for the type NextRound.

View Source
const OwnState_TypeID = 0xce8da0c591f7b39f

OwnState_TypeID is the unique identifier for the type OwnState.

View Source
const OwnValidatingState_TypeID = 0xd7dde404fa3b5b03

OwnValidatingState_TypeID is the unique identifier for the type OwnValidatingState.

View Source
const PClaims_TypeID = 0x9a7cf3b8ccdd561f

PClaims_TypeID is the unique identifier for the type PClaims.

View Source
const PreCommitNil_TypeID = 0x99e482280ba39765

PreCommitNil_TypeID is the unique identifier for the type PreCommitNil.

View Source
const PreCommit_TypeID = 0x962a57a2c30ab3cc

PreCommit_TypeID is the unique identifier for the type PreCommit.

View Source
const PreVoteNil_TypeID = 0xdcd451184d295c70

PreVoteNil_TypeID is the unique identifier for the type PreVoteNil.

View Source
const PreVote_TypeID = 0xd6c749583b4cc63a

PreVote_TypeID is the unique identifier for the type PreVote.

View Source
const Proposal_TypeID = 0x9af13d67202e38f8

Proposal_TypeID is the unique identifier for the type Proposal.

View Source
const RCert_TypeID = 0xd7182e49f1abd5dc

RCert_TypeID is the unique identifier for the type RCert.

View Source
const RClaims_TypeID = 0xb23998c63938dd88

RClaims_TypeID is the unique identifier for the type RClaims.

View Source
const RoundState_TypeID = 0xcfa13406e7c64206

RoundState_TypeID is the unique identifier for the type RoundState.

View Source
const ValidatorSet_TypeID = 0xd9941258ffc9401a

ValidatorSet_TypeID is the unique identifier for the type ValidatorSet.

View Source
const Validator_TypeID = 0xfb76cd14c2ae27f8

Validator_TypeID is the unique identifier for the type Validator.

Variables

View Source
var (
	DefaultRClaims      = RClaims{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[0:48]).Struct()}
	DefaultBClaims      = BClaims{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[48:144]).Struct()}
	DefaultRCert        = RCert{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[144:216]).Struct()}
	DefaultPClaims      = PClaims{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[216:384]).Struct()}
	DefaultNRClaims     = NRClaims{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[384:520]).Struct()}
	DefaultProposal     = Proposal{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[520:720]).Struct()}
	DefaultNHClaims     = NHClaims{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[720:944]).Struct()}
	DefaultPreVote      = PreVote{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[944:1168]).Struct()}
	DefaultPreCommit    = PreCommit{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[1168:1408]).Struct()}
	DefaultPreVoteNil   = PreVoteNil{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[1408:1504]).Struct()}
	DefaultPreCommitNil = PreCommitNil{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[1504:1600]).Struct()}
	DefaultNextRound    = NextRound{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[1600:1760]).Struct()}
	DefaultNextHeight   = NextHeight{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[1760:2024]).Struct()}
	DefaultBlockHeader  = BlockHeader{Struct: capnp.MustUnmarshalRootPtr(x_85d3acc39d94e0f8[2024:2160]).Struct()}
)

Constants defined in consensus.capnp.

Functions

This section is empty.

Types

type BClaims

type BClaims struct{ capnp.Struct }

func NewBClaims

func NewBClaims(s *capnp.Segment) (BClaims, error)

func NewRootBClaims

func NewRootBClaims(s *capnp.Segment) (BClaims, error)

func ReadRootBClaims

func ReadRootBClaims(msg *capnp.Message) (BClaims, error)

func (BClaims) ChainID

func (s BClaims) ChainID() uint32

func (BClaims) HasHeaderRoot

func (s BClaims) HasHeaderRoot() bool

func (BClaims) HasPrevBlock

func (s BClaims) HasPrevBlock() bool

func (BClaims) HasStateRoot

func (s BClaims) HasStateRoot() bool

func (BClaims) HasTxRoot

func (s BClaims) HasTxRoot() bool

func (BClaims) HeaderRoot

func (s BClaims) HeaderRoot() []byte

func (BClaims) Height

func (s BClaims) Height() uint32

func (BClaims) PrevBlock

func (s BClaims) PrevBlock() []byte

func (BClaims) SetChainID

func (s BClaims) SetChainID(v uint32)

func (BClaims) SetHeaderRoot

func (s BClaims) SetHeaderRoot(v []byte) error

func (BClaims) SetHeight

func (s BClaims) SetHeight(v uint32)

func (BClaims) SetPrevBlock

func (s BClaims) SetPrevBlock(v []byte) error

func (BClaims) SetStateRoot

func (s BClaims) SetStateRoot(v []byte) error

func (BClaims) SetTxCount

func (s BClaims) SetTxCount(v uint32)

func (BClaims) SetTxRoot

func (s BClaims) SetTxRoot(v []byte) error

func (BClaims) StateRoot

func (s BClaims) StateRoot() []byte

func (BClaims) String

func (s BClaims) String() string

func (BClaims) TxCount

func (s BClaims) TxCount() uint32

func (BClaims) TxRoot

func (s BClaims) TxRoot() []byte

type BClaims_List

type BClaims_List struct{ capnp.List }

BClaims_List is a list of BClaims.

func NewBClaims_List

func NewBClaims_List(s *capnp.Segment, sz int32) (BClaims_List, error)

NewBClaims creates a new list of BClaims.

func (BClaims_List) At

func (s BClaims_List) At(i int) BClaims

func (BClaims_List) Set

func (s BClaims_List) Set(i int, v BClaims) error

func (BClaims_List) String

func (s BClaims_List) String() string

type BClaims_Promise

type BClaims_Promise struct{ *capnp.Pipeline }

BClaims_Promise is a wrapper for a BClaims promised by a client call.

func (BClaims_Promise) Struct

func (p BClaims_Promise) Struct() (BClaims, error)

type BlockHeader

type BlockHeader struct{ capnp.Struct }

func NewBlockHeader

func NewBlockHeader(s *capnp.Segment) (BlockHeader, error)

func NewRootBlockHeader

func NewRootBlockHeader(s *capnp.Segment) (BlockHeader, error)

func ReadRootBlockHeader

func ReadRootBlockHeader(msg *capnp.Message) (BlockHeader, error)

func (BlockHeader) BClaims

func (s BlockHeader) BClaims() BClaims

func (BlockHeader) HasBClaims

func (s BlockHeader) HasBClaims() bool

func (BlockHeader) HasSigGroup

func (s BlockHeader) HasSigGroup() bool

func (BlockHeader) HasTxHshLst

func (s BlockHeader) HasTxHshLst() bool

func (BlockHeader) NewBClaims

func (s BlockHeader) NewBClaims() (BClaims, error)

NewBClaims sets the bClaims field to a newly allocated BClaims struct, preferring placement in s's segment.

func (BlockHeader) SetBClaims

func (s BlockHeader) SetBClaims(v BClaims) error

func (BlockHeader) SetSigGroup

func (s BlockHeader) SetSigGroup(v []byte) error

func (BlockHeader) SetTxHshLst

func (s BlockHeader) SetTxHshLst(v []byte) error

func (BlockHeader) SigGroup

func (s BlockHeader) SigGroup() []byte

func (BlockHeader) String

func (s BlockHeader) String() string

func (BlockHeader) TxHshLst

func (s BlockHeader) TxHshLst() []byte

type BlockHeader_List

type BlockHeader_List struct{ capnp.List }

BlockHeader_List is a list of BlockHeader.

func NewBlockHeader_List

func NewBlockHeader_List(s *capnp.Segment, sz int32) (BlockHeader_List, error)

NewBlockHeader creates a new list of BlockHeader.

func (BlockHeader_List) At

func (BlockHeader_List) Set

func (s BlockHeader_List) Set(i int, v BlockHeader) error

func (BlockHeader_List) String

func (s BlockHeader_List) String() string

type BlockHeader_Promise

type BlockHeader_Promise struct{ *capnp.Pipeline }

BlockHeader_Promise is a wrapper for a BlockHeader promised by a client call.

func (BlockHeader_Promise) BClaims

func (BlockHeader_Promise) Struct

func (p BlockHeader_Promise) Struct() (BlockHeader, error)

type EncryptedStore

type EncryptedStore struct{ capnp.Struct }

func NewEncryptedStore

func NewEncryptedStore(s *capnp.Segment) (EncryptedStore, error)

func NewRootEncryptedStore

func NewRootEncryptedStore(s *capnp.Segment) (EncryptedStore, error)

func ReadRootEncryptedStore

func ReadRootEncryptedStore(msg *capnp.Message) (EncryptedStore, error)

func (EncryptedStore) CypherText

func (s EncryptedStore) CypherText() []byte

func (EncryptedStore) HasCypherText

func (s EncryptedStore) HasCypherText() bool

func (EncryptedStore) HasKid

func (s EncryptedStore) HasKid() bool

func (EncryptedStore) HasName

func (s EncryptedStore) HasName() bool

func (EncryptedStore) HasNonce

func (s EncryptedStore) HasNonce() bool

func (EncryptedStore) Kid

func (s EncryptedStore) Kid() []byte

func (EncryptedStore) Name

func (s EncryptedStore) Name() []byte

func (EncryptedStore) Nonce

func (s EncryptedStore) Nonce() []byte

func (EncryptedStore) SetCypherText

func (s EncryptedStore) SetCypherText(v []byte) error

func (EncryptedStore) SetKid

func (s EncryptedStore) SetKid(v []byte) error

func (EncryptedStore) SetName

func (s EncryptedStore) SetName(v []byte) error

func (EncryptedStore) SetNonce

func (s EncryptedStore) SetNonce(v []byte) error

func (EncryptedStore) String

func (s EncryptedStore) String() string

type EncryptedStore_List

type EncryptedStore_List struct{ capnp.List }

EncryptedStore_List is a list of EncryptedStore.

func NewEncryptedStore_List

func NewEncryptedStore_List(s *capnp.Segment, sz int32) (EncryptedStore_List, error)

NewEncryptedStore creates a new list of EncryptedStore.

func (EncryptedStore_List) At

func (EncryptedStore_List) Set

func (EncryptedStore_List) String

func (s EncryptedStore_List) String() string

type EncryptedStore_Promise

type EncryptedStore_Promise struct{ *capnp.Pipeline }

EncryptedStore_Promise is a wrapper for a EncryptedStore promised by a client call.

func (EncryptedStore_Promise) Struct

type NHClaims

type NHClaims struct{ capnp.Struct }

func NewNHClaims

func NewNHClaims(s *capnp.Segment) (NHClaims, error)

func NewRootNHClaims

func NewRootNHClaims(s *capnp.Segment) (NHClaims, error)

func ReadRootNHClaims

func ReadRootNHClaims(msg *capnp.Message) (NHClaims, error)

func (NHClaims) HasProposal

func (s NHClaims) HasProposal() bool

func (NHClaims) HasSigShare

func (s NHClaims) HasSigShare() bool

func (NHClaims) NewProposal

func (s NHClaims) NewProposal() (Proposal, error)

NewProposal sets the proposal field to a newly allocated Proposal struct, preferring placement in s's segment.

func (NHClaims) Proposal

func (s NHClaims) Proposal() Proposal

func (NHClaims) SetProposal

func (s NHClaims) SetProposal(v Proposal) error

func (NHClaims) SetSigShare

func (s NHClaims) SetSigShare(v []byte) error

func (NHClaims) SigShare

func (s NHClaims) SigShare() []byte

func (NHClaims) String

func (s NHClaims) String() string

type NHClaims_List

type NHClaims_List struct{ capnp.List }

NHClaims_List is a list of NHClaims.

func NewNHClaims_List

func NewNHClaims_List(s *capnp.Segment, sz int32) (NHClaims_List, error)

NewNHClaims creates a new list of NHClaims.

func (NHClaims_List) At

func (s NHClaims_List) At(i int) NHClaims

func (NHClaims_List) Set

func (s NHClaims_List) Set(i int, v NHClaims) error

func (NHClaims_List) String

func (s NHClaims_List) String() string

type NHClaims_Promise

type NHClaims_Promise struct{ *capnp.Pipeline }

NHClaims_Promise is a wrapper for a NHClaims promised by a client call.

func (NHClaims_Promise) Proposal

func (p NHClaims_Promise) Proposal() Proposal_Promise

func (NHClaims_Promise) Struct

func (p NHClaims_Promise) Struct() (NHClaims, error)

type NRClaims

type NRClaims struct{ capnp.Struct }

func NewNRClaims

func NewNRClaims(s *capnp.Segment) (NRClaims, error)

func NewRootNRClaims

func NewRootNRClaims(s *capnp.Segment) (NRClaims, error)

func ReadRootNRClaims

func ReadRootNRClaims(msg *capnp.Message) (NRClaims, error)

func (NRClaims) HasRCert

func (s NRClaims) HasRCert() bool

func (NRClaims) HasRClaims

func (s NRClaims) HasRClaims() bool

func (NRClaims) HasSigShare

func (s NRClaims) HasSigShare() bool

func (NRClaims) NewRCert

func (s NRClaims) NewRCert() (RCert, error)

NewRCert sets the rCert field to a newly allocated RCert struct, preferring placement in s's segment.

func (NRClaims) NewRClaims

func (s NRClaims) NewRClaims() (RClaims, error)

NewRClaims sets the rClaims field to a newly allocated RClaims struct, preferring placement in s's segment.

func (NRClaims) RCert

func (s NRClaims) RCert() RCert

func (NRClaims) RClaims

func (s NRClaims) RClaims() RClaims

func (NRClaims) SetRCert

func (s NRClaims) SetRCert(v RCert) error

func (NRClaims) SetRClaims

func (s NRClaims) SetRClaims(v RClaims) error

func (NRClaims) SetSigShare

func (s NRClaims) SetSigShare(v []byte) error

func (NRClaims) SigShare

func (s NRClaims) SigShare() []byte

func (NRClaims) String

func (s NRClaims) String() string

type NRClaims_List

type NRClaims_List struct{ capnp.List }

NRClaims_List is a list of NRClaims.

func NewNRClaims_List

func NewNRClaims_List(s *capnp.Segment, sz int32) (NRClaims_List, error)

NewNRClaims creates a new list of NRClaims.

func (NRClaims_List) At

func (s NRClaims_List) At(i int) NRClaims

func (NRClaims_List) Set

func (s NRClaims_List) Set(i int, v NRClaims) error

func (NRClaims_List) String

func (s NRClaims_List) String() string

type NRClaims_Promise

type NRClaims_Promise struct{ *capnp.Pipeline }

NRClaims_Promise is a wrapper for a NRClaims promised by a client call.

func (NRClaims_Promise) RCert

func (p NRClaims_Promise) RCert() RCert_Promise

func (NRClaims_Promise) RClaims

func (p NRClaims_Promise) RClaims() RClaims_Promise

func (NRClaims_Promise) Struct

func (p NRClaims_Promise) Struct() (NRClaims, error)

type NextHeight

type NextHeight struct{ capnp.Struct }

func NewNextHeight

func NewNextHeight(s *capnp.Segment) (NextHeight, error)

func NewRootNextHeight

func NewRootNextHeight(s *capnp.Segment) (NextHeight, error)

func ReadRootNextHeight

func ReadRootNextHeight(msg *capnp.Message) (NextHeight, error)

func (NextHeight) HasNHClaims

func (s NextHeight) HasNHClaims() bool

func (NextHeight) HasPreCommits

func (s NextHeight) HasPreCommits() bool

func (NextHeight) HasSignature

func (s NextHeight) HasSignature() bool

func (NextHeight) NHClaims

func (s NextHeight) NHClaims() NHClaims

func (NextHeight) NewNHClaims

func (s NextHeight) NewNHClaims() (NHClaims, error)

NewNHClaims sets the nHClaims field to a newly allocated NHClaims struct, preferring placement in s's segment.

func (NextHeight) PreCommits

func (s NextHeight) PreCommits() []byte

func (NextHeight) SetNHClaims

func (s NextHeight) SetNHClaims(v NHClaims) error

func (NextHeight) SetPreCommits

func (s NextHeight) SetPreCommits(v []byte) error

func (NextHeight) SetSignature

func (s NextHeight) SetSignature(v []byte) error

func (NextHeight) Signature

func (s NextHeight) Signature() []byte

func (NextHeight) String

func (s NextHeight) String() string

type NextHeight_List

type NextHeight_List struct{ capnp.List }

NextHeight_List is a list of NextHeight.

func NewNextHeight_List

func NewNextHeight_List(s *capnp.Segment, sz int32) (NextHeight_List, error)

NewNextHeight creates a new list of NextHeight.

func (NextHeight_List) At

func (s NextHeight_List) At(i int) NextHeight

func (NextHeight_List) Set

func (s NextHeight_List) Set(i int, v NextHeight) error

func (NextHeight_List) String

func (s NextHeight_List) String() string

type NextHeight_Promise

type NextHeight_Promise struct{ *capnp.Pipeline }

NextHeight_Promise is a wrapper for a NextHeight promised by a client call.

func (NextHeight_Promise) NHClaims

func (p NextHeight_Promise) NHClaims() NHClaims_Promise

func (NextHeight_Promise) Struct

func (p NextHeight_Promise) Struct() (NextHeight, error)

type NextRound

type NextRound struct{ capnp.Struct }

func NewNextRound

func NewNextRound(s *capnp.Segment) (NextRound, error)

func NewRootNextRound

func NewRootNextRound(s *capnp.Segment) (NextRound, error)

func ReadRootNextRound

func ReadRootNextRound(msg *capnp.Message) (NextRound, error)

func (NextRound) HasNRClaims

func (s NextRound) HasNRClaims() bool

func (NextRound) HasSignature

func (s NextRound) HasSignature() bool

func (NextRound) NRClaims

func (s NextRound) NRClaims() NRClaims

func (NextRound) NewNRClaims

func (s NextRound) NewNRClaims() (NRClaims, error)

NewNRClaims sets the nRClaims field to a newly allocated NRClaims struct, preferring placement in s's segment.

func (NextRound) SetNRClaims

func (s NextRound) SetNRClaims(v NRClaims) error

func (NextRound) SetSignature

func (s NextRound) SetSignature(v []byte) error

func (NextRound) Signature

func (s NextRound) Signature() []byte

func (NextRound) String

func (s NextRound) String() string

type NextRound_List

type NextRound_List struct{ capnp.List }

NextRound_List is a list of NextRound.

func NewNextRound_List

func NewNextRound_List(s *capnp.Segment, sz int32) (NextRound_List, error)

NewNextRound creates a new list of NextRound.

func (NextRound_List) At

func (s NextRound_List) At(i int) NextRound

func (NextRound_List) Set

func (s NextRound_List) Set(i int, v NextRound) error

func (NextRound_List) String

func (s NextRound_List) String() string

type NextRound_Promise

type NextRound_Promise struct{ *capnp.Pipeline }

NextRound_Promise is a wrapper for a NextRound promised by a client call.

func (NextRound_Promise) NRClaims

func (p NextRound_Promise) NRClaims() NRClaims_Promise

func (NextRound_Promise) Struct

func (p NextRound_Promise) Struct() (NextRound, error)

type OwnState

type OwnState struct{ capnp.Struct }

func NewOwnState

func NewOwnState(s *capnp.Segment) (OwnState, error)

func NewRootOwnState

func NewRootOwnState(s *capnp.Segment) (OwnState, error)

func ReadRootOwnState

func ReadRootOwnState(msg *capnp.Message) (OwnState, error)

func (OwnState) CanonicalSnapShot

func (s OwnState) CanonicalSnapShot() BlockHeader

func (OwnState) GroupKey

func (s OwnState) GroupKey() []byte

func (OwnState) HasCanonicalSnapShot

func (s OwnState) HasCanonicalSnapShot() bool

func (OwnState) HasGroupKey

func (s OwnState) HasGroupKey() bool

func (OwnState) HasMaxBHSeen

func (s OwnState) HasMaxBHSeen() bool

func (OwnState) HasPendingSnapShot

func (s OwnState) HasPendingSnapShot() bool

func (OwnState) HasSyncToBH

func (s OwnState) HasSyncToBH() bool

func (OwnState) HasVAddr

func (s OwnState) HasVAddr() bool

func (OwnState) MaxBHSeen

func (s OwnState) MaxBHSeen() BlockHeader

func (OwnState) NewCanonicalSnapShot

func (s OwnState) NewCanonicalSnapShot() (BlockHeader, error)

NewCanonicalSnapShot sets the canonicalSnapShot field to a newly allocated BlockHeader struct, preferring placement in s's segment.

func (OwnState) NewMaxBHSeen

func (s OwnState) NewMaxBHSeen() (BlockHeader, error)

NewMaxBHSeen sets the maxBHSeen field to a newly allocated BlockHeader struct, preferring placement in s's segment.

func (OwnState) NewPendingSnapShot

func (s OwnState) NewPendingSnapShot() (BlockHeader, error)

NewPendingSnapShot sets the pendingSnapShot field to a newly allocated BlockHeader struct, preferring placement in s's segment.

func (OwnState) NewSyncToBH

func (s OwnState) NewSyncToBH() (BlockHeader, error)

NewSyncToBH sets the syncToBH field to a newly allocated BlockHeader struct, preferring placement in s's segment.

func (OwnState) PendingSnapShot

func (s OwnState) PendingSnapShot() BlockHeader

func (OwnState) SetCanonicalSnapShot

func (s OwnState) SetCanonicalSnapShot(v BlockHeader) error

func (OwnState) SetGroupKey

func (s OwnState) SetGroupKey(v []byte) error

func (OwnState) SetMaxBHSeen

func (s OwnState) SetMaxBHSeen(v BlockHeader) error

func (OwnState) SetPendingSnapShot

func (s OwnState) SetPendingSnapShot(v BlockHeader) error

func (OwnState) SetSyncToBH

func (s OwnState) SetSyncToBH(v BlockHeader) error

func (OwnState) SetVAddr

func (s OwnState) SetVAddr(v []byte) error

func (OwnState) String

func (s OwnState) String() string

func (OwnState) SyncToBH

func (s OwnState) SyncToBH() BlockHeader

func (OwnState) VAddr

func (s OwnState) VAddr() []byte

type OwnState_List

type OwnState_List struct{ capnp.List }

OwnState_List is a list of OwnState.

func NewOwnState_List

func NewOwnState_List(s *capnp.Segment, sz int32) (OwnState_List, error)

NewOwnState creates a new list of OwnState.

func (OwnState_List) At

func (s OwnState_List) At(i int) OwnState

func (OwnState_List) Set

func (s OwnState_List) Set(i int, v OwnState) error

func (OwnState_List) String

func (s OwnState_List) String() string

type OwnState_Promise

type OwnState_Promise struct{ *capnp.Pipeline }

OwnState_Promise is a wrapper for a OwnState promised by a client call.

func (OwnState_Promise) CanonicalSnapShot

func (p OwnState_Promise) CanonicalSnapShot() BlockHeader_Promise

func (OwnState_Promise) MaxBHSeen

func (p OwnState_Promise) MaxBHSeen() BlockHeader_Promise

func (OwnState_Promise) PendingSnapShot

func (p OwnState_Promise) PendingSnapShot() BlockHeader_Promise

func (OwnState_Promise) Struct

func (p OwnState_Promise) Struct() (OwnState, error)

func (OwnState_Promise) SyncToBH

type OwnValidatingState

type OwnValidatingState struct{ capnp.Struct }

func NewOwnValidatingState

func NewOwnValidatingState(s *capnp.Segment) (OwnValidatingState, error)

func NewRootOwnValidatingState

func NewRootOwnValidatingState(s *capnp.Segment) (OwnValidatingState, error)

func ReadRootOwnValidatingState

func ReadRootOwnValidatingState(msg *capnp.Message) (OwnValidatingState, error)

func (OwnValidatingState) GroupKey

func (s OwnValidatingState) GroupKey() []byte

func (OwnValidatingState) HasGroupKey

func (s OwnValidatingState) HasGroupKey() bool

func (OwnValidatingState) HasLockedValue

func (s OwnValidatingState) HasLockedValue() bool

func (OwnValidatingState) HasVAddr

func (s OwnValidatingState) HasVAddr() bool

func (OwnValidatingState) HasValidValue

func (s OwnValidatingState) HasValidValue() bool

func (OwnValidatingState) LockedValue

func (s OwnValidatingState) LockedValue() Proposal

func (OwnValidatingState) NewLockedValue

func (s OwnValidatingState) NewLockedValue() (Proposal, error)

NewLockedValue sets the lockedValue field to a newly allocated Proposal struct, preferring placement in s's segment.

func (OwnValidatingState) NewValidValue

func (s OwnValidatingState) NewValidValue() (Proposal, error)

NewValidValue sets the validValue field to a newly allocated Proposal struct, preferring placement in s's segment.

func (OwnValidatingState) PreCommitStepStarted

func (s OwnValidatingState) PreCommitStepStarted() int64

func (OwnValidatingState) PreVoteStepStarted

func (s OwnValidatingState) PreVoteStepStarted() int64

func (OwnValidatingState) RoundStarted

func (s OwnValidatingState) RoundStarted() int64

func (OwnValidatingState) SetGroupKey

func (s OwnValidatingState) SetGroupKey(v []byte) error

func (OwnValidatingState) SetLockedValue

func (s OwnValidatingState) SetLockedValue(v Proposal) error

func (OwnValidatingState) SetPreCommitStepStarted

func (s OwnValidatingState) SetPreCommitStepStarted(v int64)

func (OwnValidatingState) SetPreVoteStepStarted

func (s OwnValidatingState) SetPreVoteStepStarted(v int64)

func (OwnValidatingState) SetRoundStarted

func (s OwnValidatingState) SetRoundStarted(v int64)

func (OwnValidatingState) SetVAddr

func (s OwnValidatingState) SetVAddr(v []byte) error

func (OwnValidatingState) SetValidValue

func (s OwnValidatingState) SetValidValue(v Proposal) error

func (OwnValidatingState) String

func (s OwnValidatingState) String() string

func (OwnValidatingState) VAddr

func (s OwnValidatingState) VAddr() []byte

func (OwnValidatingState) ValidValue

func (s OwnValidatingState) ValidValue() Proposal

type OwnValidatingState_List

type OwnValidatingState_List struct{ capnp.List }

OwnValidatingState_List is a list of OwnValidatingState.

func NewOwnValidatingState_List

func NewOwnValidatingState_List(s *capnp.Segment, sz int32) (OwnValidatingState_List, error)

NewOwnValidatingState creates a new list of OwnValidatingState.

func (OwnValidatingState_List) At

func (OwnValidatingState_List) Set

func (OwnValidatingState_List) String

func (s OwnValidatingState_List) String() string

type OwnValidatingState_Promise

type OwnValidatingState_Promise struct{ *capnp.Pipeline }

OwnValidatingState_Promise is a wrapper for a OwnValidatingState promised by a client call.

func (OwnValidatingState_Promise) LockedValue

func (OwnValidatingState_Promise) Struct

func (OwnValidatingState_Promise) ValidValue

type PClaims

type PClaims struct{ capnp.Struct }

func NewPClaims

func NewPClaims(s *capnp.Segment) (PClaims, error)

func NewRootPClaims

func NewRootPClaims(s *capnp.Segment) (PClaims, error)

func ReadRootPClaims

func ReadRootPClaims(msg *capnp.Message) (PClaims, error)

func (PClaims) BClaims

func (s PClaims) BClaims() BClaims

func (PClaims) HasBClaims

func (s PClaims) HasBClaims() bool

func (PClaims) HasRCert

func (s PClaims) HasRCert() bool

func (PClaims) NewBClaims

func (s PClaims) NewBClaims() (BClaims, error)

NewBClaims sets the bClaims field to a newly allocated BClaims struct, preferring placement in s's segment.

func (PClaims) NewRCert

func (s PClaims) NewRCert() (RCert, error)

NewRCert sets the rCert field to a newly allocated RCert struct, preferring placement in s's segment.

func (PClaims) RCert

func (s PClaims) RCert() RCert

func (PClaims) SetBClaims

func (s PClaims) SetBClaims(v BClaims) error

func (PClaims) SetRCert

func (s PClaims) SetRCert(v RCert) error

func (PClaims) String

func (s PClaims) String() string

type PClaims_List

type PClaims_List struct{ capnp.List }

PClaims_List is a list of PClaims.

func NewPClaims_List

func NewPClaims_List(s *capnp.Segment, sz int32) (PClaims_List, error)

NewPClaims creates a new list of PClaims.

func (PClaims_List) At

func (s PClaims_List) At(i int) PClaims

func (PClaims_List) Set

func (s PClaims_List) Set(i int, v PClaims) error

func (PClaims_List) String

func (s PClaims_List) String() string

type PClaims_Promise

type PClaims_Promise struct{ *capnp.Pipeline }

PClaims_Promise is a wrapper for a PClaims promised by a client call.

func (PClaims_Promise) BClaims

func (p PClaims_Promise) BClaims() BClaims_Promise

func (PClaims_Promise) RCert

func (p PClaims_Promise) RCert() RCert_Promise

func (PClaims_Promise) Struct

func (p PClaims_Promise) Struct() (PClaims, error)

type PreCommit

type PreCommit struct{ capnp.Struct }

func NewPreCommit

func NewPreCommit(s *capnp.Segment) (PreCommit, error)

func NewRootPreCommit

func NewRootPreCommit(s *capnp.Segment) (PreCommit, error)

func ReadRootPreCommit

func ReadRootPreCommit(msg *capnp.Message) (PreCommit, error)

func (PreCommit) HasPreVotes

func (s PreCommit) HasPreVotes() bool

func (PreCommit) HasProposal

func (s PreCommit) HasProposal() bool

func (PreCommit) HasSignature

func (s PreCommit) HasSignature() bool

func (PreCommit) NewProposal

func (s PreCommit) NewProposal() (Proposal, error)

NewProposal sets the proposal field to a newly allocated Proposal struct, preferring placement in s's segment.

func (PreCommit) PreVotes

func (s PreCommit) PreVotes() []byte

func (PreCommit) Proposal

func (s PreCommit) Proposal() Proposal

func (PreCommit) SetPreVotes

func (s PreCommit) SetPreVotes(v []byte) error

func (PreCommit) SetProposal

func (s PreCommit) SetProposal(v Proposal) error

func (PreCommit) SetSignature

func (s PreCommit) SetSignature(v []byte) error

func (PreCommit) Signature

func (s PreCommit) Signature() []byte

func (PreCommit) String

func (s PreCommit) String() string

type PreCommitNil

type PreCommitNil struct{ capnp.Struct }

func NewPreCommitNil

func NewPreCommitNil(s *capnp.Segment) (PreCommitNil, error)

func NewRootPreCommitNil

func NewRootPreCommitNil(s *capnp.Segment) (PreCommitNil, error)

func ReadRootPreCommitNil

func ReadRootPreCommitNil(msg *capnp.Message) (PreCommitNil, error)

func (PreCommitNil) HasRCert

func (s PreCommitNil) HasRCert() bool

func (PreCommitNil) HasSignature

func (s PreCommitNil) HasSignature() bool

func (PreCommitNil) NewRCert

func (s PreCommitNil) NewRCert() (RCert, error)

NewRCert sets the rCert field to a newly allocated RCert struct, preferring placement in s's segment.

func (PreCommitNil) RCert

func (s PreCommitNil) RCert() RCert

func (PreCommitNil) SetRCert

func (s PreCommitNil) SetRCert(v RCert) error

func (PreCommitNil) SetSignature

func (s PreCommitNil) SetSignature(v []byte) error

func (PreCommitNil) Signature

func (s PreCommitNil) Signature() []byte

func (PreCommitNil) String

func (s PreCommitNil) String() string

type PreCommitNil_List

type PreCommitNil_List struct{ capnp.List }

PreCommitNil_List is a list of PreCommitNil.

func NewPreCommitNil_List

func NewPreCommitNil_List(s *capnp.Segment, sz int32) (PreCommitNil_List, error)

NewPreCommitNil creates a new list of PreCommitNil.

func (PreCommitNil_List) At

func (PreCommitNil_List) Set

func (PreCommitNil_List) String

func (s PreCommitNil_List) String() string

type PreCommitNil_Promise

type PreCommitNil_Promise struct{ *capnp.Pipeline }

PreCommitNil_Promise is a wrapper for a PreCommitNil promised by a client call.

func (PreCommitNil_Promise) RCert

func (PreCommitNil_Promise) Struct

func (p PreCommitNil_Promise) Struct() (PreCommitNil, error)

type PreCommit_List

type PreCommit_List struct{ capnp.List }

PreCommit_List is a list of PreCommit.

func NewPreCommit_List

func NewPreCommit_List(s *capnp.Segment, sz int32) (PreCommit_List, error)

NewPreCommit creates a new list of PreCommit.

func (PreCommit_List) At

func (s PreCommit_List) At(i int) PreCommit

func (PreCommit_List) Set

func (s PreCommit_List) Set(i int, v PreCommit) error

func (PreCommit_List) String

func (s PreCommit_List) String() string

type PreCommit_Promise

type PreCommit_Promise struct{ *capnp.Pipeline }

PreCommit_Promise is a wrapper for a PreCommit promised by a client call.

func (PreCommit_Promise) Proposal

func (p PreCommit_Promise) Proposal() Proposal_Promise

func (PreCommit_Promise) Struct

func (p PreCommit_Promise) Struct() (PreCommit, error)

type PreVote

type PreVote struct{ capnp.Struct }

func NewPreVote

func NewPreVote(s *capnp.Segment) (PreVote, error)

func NewRootPreVote

func NewRootPreVote(s *capnp.Segment) (PreVote, error)

func ReadRootPreVote

func ReadRootPreVote(msg *capnp.Message) (PreVote, error)

func (PreVote) HasProposal

func (s PreVote) HasProposal() bool

func (PreVote) HasSignature

func (s PreVote) HasSignature() bool

func (PreVote) NewProposal

func (s PreVote) NewProposal() (Proposal, error)

NewProposal sets the proposal field to a newly allocated Proposal struct, preferring placement in s's segment.

func (PreVote) Proposal

func (s PreVote) Proposal() Proposal

func (PreVote) SetProposal

func (s PreVote) SetProposal(v Proposal) error

func (PreVote) SetSignature

func (s PreVote) SetSignature(v []byte) error

func (PreVote) Signature

func (s PreVote) Signature() []byte

func (PreVote) String

func (s PreVote) String() string

type PreVoteNil

type PreVoteNil struct{ capnp.Struct }

func NewPreVoteNil

func NewPreVoteNil(s *capnp.Segment) (PreVoteNil, error)

func NewRootPreVoteNil

func NewRootPreVoteNil(s *capnp.Segment) (PreVoteNil, error)

func ReadRootPreVoteNil

func ReadRootPreVoteNil(msg *capnp.Message) (PreVoteNil, error)

func (PreVoteNil) HasRCert

func (s PreVoteNil) HasRCert() bool

func (PreVoteNil) HasSignature

func (s PreVoteNil) HasSignature() bool

func (PreVoteNil) NewRCert

func (s PreVoteNil) NewRCert() (RCert, error)

NewRCert sets the rCert field to a newly allocated RCert struct, preferring placement in s's segment.

func (PreVoteNil) RCert

func (s PreVoteNil) RCert() RCert

func (PreVoteNil) SetRCert

func (s PreVoteNil) SetRCert(v RCert) error

func (PreVoteNil) SetSignature

func (s PreVoteNil) SetSignature(v []byte) error

func (PreVoteNil) Signature

func (s PreVoteNil) Signature() []byte

func (PreVoteNil) String

func (s PreVoteNil) String() string

type PreVoteNil_List

type PreVoteNil_List struct{ capnp.List }

PreVoteNil_List is a list of PreVoteNil.

func NewPreVoteNil_List

func NewPreVoteNil_List(s *capnp.Segment, sz int32) (PreVoteNil_List, error)

NewPreVoteNil creates a new list of PreVoteNil.

func (PreVoteNil_List) At

func (s PreVoteNil_List) At(i int) PreVoteNil

func (PreVoteNil_List) Set

func (s PreVoteNil_List) Set(i int, v PreVoteNil) error

func (PreVoteNil_List) String

func (s PreVoteNil_List) String() string

type PreVoteNil_Promise

type PreVoteNil_Promise struct{ *capnp.Pipeline }

PreVoteNil_Promise is a wrapper for a PreVoteNil promised by a client call.

func (PreVoteNil_Promise) RCert

func (PreVoteNil_Promise) Struct

func (p PreVoteNil_Promise) Struct() (PreVoteNil, error)

type PreVote_List

type PreVote_List struct{ capnp.List }

PreVote_List is a list of PreVote.

func NewPreVote_List

func NewPreVote_List(s *capnp.Segment, sz int32) (PreVote_List, error)

NewPreVote creates a new list of PreVote.

func (PreVote_List) At

func (s PreVote_List) At(i int) PreVote

func (PreVote_List) Set

func (s PreVote_List) Set(i int, v PreVote) error

func (PreVote_List) String

func (s PreVote_List) String() string

type PreVote_Promise

type PreVote_Promise struct{ *capnp.Pipeline }

PreVote_Promise is a wrapper for a PreVote promised by a client call.

func (PreVote_Promise) Proposal

func (p PreVote_Promise) Proposal() Proposal_Promise

func (PreVote_Promise) Struct

func (p PreVote_Promise) Struct() (PreVote, error)

type Proposal

type Proposal struct{ capnp.Struct }

func NewProposal

func NewProposal(s *capnp.Segment) (Proposal, error)

func NewRootProposal

func NewRootProposal(s *capnp.Segment) (Proposal, error)

func ReadRootProposal

func ReadRootProposal(msg *capnp.Message) (Proposal, error)

func (Proposal) HasPClaims

func (s Proposal) HasPClaims() bool

func (Proposal) HasSignature

func (s Proposal) HasSignature() bool

func (Proposal) HasTxHshLst

func (s Proposal) HasTxHshLst() bool

func (Proposal) NewPClaims

func (s Proposal) NewPClaims() (PClaims, error)

NewPClaims sets the pClaims field to a newly allocated PClaims struct, preferring placement in s's segment.

func (Proposal) PClaims

func (s Proposal) PClaims() PClaims

func (Proposal) SetPClaims

func (s Proposal) SetPClaims(v PClaims) error

func (Proposal) SetSignature

func (s Proposal) SetSignature(v []byte) error

func (Proposal) SetTxHshLst

func (s Proposal) SetTxHshLst(v []byte) error

func (Proposal) Signature

func (s Proposal) Signature() []byte

func (Proposal) String

func (s Proposal) String() string

func (Proposal) TxHshLst

func (s Proposal) TxHshLst() []byte

type Proposal_List

type Proposal_List struct{ capnp.List }

Proposal_List is a list of Proposal.

func NewProposal_List

func NewProposal_List(s *capnp.Segment, sz int32) (Proposal_List, error)

NewProposal creates a new list of Proposal.

func (Proposal_List) At

func (s Proposal_List) At(i int) Proposal

func (Proposal_List) Set

func (s Proposal_List) Set(i int, v Proposal) error

func (Proposal_List) String

func (s Proposal_List) String() string

type Proposal_Promise

type Proposal_Promise struct{ *capnp.Pipeline }

Proposal_Promise is a wrapper for a Proposal promised by a client call.

func (Proposal_Promise) PClaims

func (p Proposal_Promise) PClaims() PClaims_Promise

func (Proposal_Promise) Struct

func (p Proposal_Promise) Struct() (Proposal, error)

type RCert

type RCert struct{ capnp.Struct }

func NewRCert

func NewRCert(s *capnp.Segment) (RCert, error)

func NewRootRCert

func NewRootRCert(s *capnp.Segment) (RCert, error)

func ReadRootRCert

func ReadRootRCert(msg *capnp.Message) (RCert, error)

func (RCert) HasRClaims

func (s RCert) HasRClaims() bool

func (RCert) HasSigGroup

func (s RCert) HasSigGroup() bool

func (RCert) NewRClaims

func (s RCert) NewRClaims() (RClaims, error)

NewRClaims sets the rClaims field to a newly allocated RClaims struct, preferring placement in s's segment.

func (RCert) RClaims

func (s RCert) RClaims() RClaims

func (RCert) SetRClaims

func (s RCert) SetRClaims(v RClaims) error

func (RCert) SetSigGroup

func (s RCert) SetSigGroup(v []byte) error

func (RCert) SigGroup

func (s RCert) SigGroup() []byte

func (RCert) String

func (s RCert) String() string

type RCert_List

type RCert_List struct{ capnp.List }

RCert_List is a list of RCert.

func NewRCert_List

func NewRCert_List(s *capnp.Segment, sz int32) (RCert_List, error)

NewRCert creates a new list of RCert.

func (RCert_List) At

func (s RCert_List) At(i int) RCert

func (RCert_List) Set

func (s RCert_List) Set(i int, v RCert) error

func (RCert_List) String

func (s RCert_List) String() string

type RCert_Promise

type RCert_Promise struct{ *capnp.Pipeline }

RCert_Promise is a wrapper for a RCert promised by a client call.

func (RCert_Promise) RClaims

func (p RCert_Promise) RClaims() RClaims_Promise

func (RCert_Promise) Struct

func (p RCert_Promise) Struct() (RCert, error)

type RClaims

type RClaims struct{ capnp.Struct }

func NewRClaims

func NewRClaims(s *capnp.Segment) (RClaims, error)

func NewRootRClaims

func NewRootRClaims(s *capnp.Segment) (RClaims, error)

func ReadRootRClaims

func ReadRootRClaims(msg *capnp.Message) (RClaims, error)

func (RClaims) ChainID

func (s RClaims) ChainID() uint32

func (RClaims) HasPrevBlock

func (s RClaims) HasPrevBlock() bool

func (RClaims) Height

func (s RClaims) Height() uint32

func (RClaims) PrevBlock

func (s RClaims) PrevBlock() []byte

func (RClaims) Round

func (s RClaims) Round() uint32

func (RClaims) SetChainID

func (s RClaims) SetChainID(v uint32)

func (RClaims) SetHeight

func (s RClaims) SetHeight(v uint32)

func (RClaims) SetPrevBlock

func (s RClaims) SetPrevBlock(v []byte) error

func (RClaims) SetRound

func (s RClaims) SetRound(v uint32)

func (RClaims) String

func (s RClaims) String() string

type RClaims_List

type RClaims_List struct{ capnp.List }

RClaims_List is a list of RClaims.

func NewRClaims_List

func NewRClaims_List(s *capnp.Segment, sz int32) (RClaims_List, error)

NewRClaims creates a new list of RClaims.

func (RClaims_List) At

func (s RClaims_List) At(i int) RClaims

func (RClaims_List) Set

func (s RClaims_List) Set(i int, v RClaims) error

func (RClaims_List) String

func (s RClaims_List) String() string

type RClaims_Promise

type RClaims_Promise struct{ *capnp.Pipeline }

RClaims_Promise is a wrapper for a RClaims promised by a client call.

func (RClaims_Promise) Struct

func (p RClaims_Promise) Struct() (RClaims, error)

type RoundState

type RoundState struct{ capnp.Struct }

func NewRootRoundState

func NewRootRoundState(s *capnp.Segment) (RoundState, error)

func NewRoundState

func NewRoundState(s *capnp.Segment) (RoundState, error)

func ReadRootRoundState

func ReadRootRoundState(msg *capnp.Message) (RoundState, error)

func (RoundState) ConflictingNextHeight

func (s RoundState) ConflictingNextHeight() NextHeight

func (RoundState) ConflictingPreCommit

func (s RoundState) ConflictingPreCommit() PreCommit

func (RoundState) ConflictingPreVote

func (s RoundState) ConflictingPreVote() PreVote

func (RoundState) ConflictingProposal

func (s RoundState) ConflictingProposal() Proposal

func (RoundState) ConflictingRCert

func (s RoundState) ConflictingRCert() RCert

func (RoundState) GroupIdx

func (s RoundState) GroupIdx() uint8

func (RoundState) GroupKey

func (s RoundState) GroupKey() []byte

func (RoundState) GroupShare

func (s RoundState) GroupShare() []byte

func (RoundState) HasConflictingNextHeight

func (s RoundState) HasConflictingNextHeight() bool

func (RoundState) HasConflictingPreCommit

func (s RoundState) HasConflictingPreCommit() bool

func (RoundState) HasConflictingPreVote

func (s RoundState) HasConflictingPreVote() bool

func (RoundState) HasConflictingProposal

func (s RoundState) HasConflictingProposal() bool

func (RoundState) HasConflictingRCert

func (s RoundState) HasConflictingRCert() bool

func (RoundState) HasGroupKey

func (s RoundState) HasGroupKey() bool

func (RoundState) HasGroupShare

func (s RoundState) HasGroupShare() bool

func (RoundState) HasNextHeight

func (s RoundState) HasNextHeight() bool

func (RoundState) HasNextRound

func (s RoundState) HasNextRound() bool

func (RoundState) HasPreCommit

func (s RoundState) HasPreCommit() bool

func (RoundState) HasPreCommitNil

func (s RoundState) HasPreCommitNil() bool

func (RoundState) HasPreVote

func (s RoundState) HasPreVote() bool

func (RoundState) HasPreVoteNil

func (s RoundState) HasPreVoteNil() bool

func (RoundState) HasProposal

func (s RoundState) HasProposal() bool

func (RoundState) HasRCert

func (s RoundState) HasRCert() bool

func (RoundState) HasVAddr

func (s RoundState) HasVAddr() bool

func (RoundState) ImplicitPCN

func (s RoundState) ImplicitPCN() bool

func (RoundState) ImplicitPVN

func (s RoundState) ImplicitPVN() bool

func (RoundState) NewConflictingNextHeight

func (s RoundState) NewConflictingNextHeight() (NextHeight, error)

NewConflictingNextHeight sets the conflictingNextHeight field to a newly allocated NextHeight struct, preferring placement in s's segment.

func (RoundState) NewConflictingPreCommit

func (s RoundState) NewConflictingPreCommit() (PreCommit, error)

NewConflictingPreCommit sets the conflictingPreCommit field to a newly allocated PreCommit struct, preferring placement in s's segment.

func (RoundState) NewConflictingPreVote

func (s RoundState) NewConflictingPreVote() (PreVote, error)

NewConflictingPreVote sets the conflictingPreVote field to a newly allocated PreVote struct, preferring placement in s's segment.

func (RoundState) NewConflictingProposal

func (s RoundState) NewConflictingProposal() (Proposal, error)

NewConflictingProposal sets the conflictingProposal field to a newly allocated Proposal struct, preferring placement in s's segment.

func (RoundState) NewConflictingRCert

func (s RoundState) NewConflictingRCert() (RCert, error)

NewConflictingRCert sets the conflictingRCert field to a newly allocated RCert struct, preferring placement in s's segment.

func (RoundState) NewNextHeight

func (s RoundState) NewNextHeight() (NextHeight, error)

NewNextHeight sets the nextHeight field to a newly allocated NextHeight struct, preferring placement in s's segment.

func (RoundState) NewNextRound

func (s RoundState) NewNextRound() (NextRound, error)

NewNextRound sets the nextRound field to a newly allocated NextRound struct, preferring placement in s's segment.

func (RoundState) NewPreCommit

func (s RoundState) NewPreCommit() (PreCommit, error)

NewPreCommit sets the preCommit field to a newly allocated PreCommit struct, preferring placement in s's segment.

func (RoundState) NewPreCommitNil

func (s RoundState) NewPreCommitNil() (PreCommitNil, error)

NewPreCommitNil sets the preCommitNil field to a newly allocated PreCommitNil struct, preferring placement in s's segment.

func (RoundState) NewPreVote

func (s RoundState) NewPreVote() (PreVote, error)

NewPreVote sets the preVote field to a newly allocated PreVote struct, preferring placement in s's segment.

func (RoundState) NewPreVoteNil

func (s RoundState) NewPreVoteNil() (PreVoteNil, error)

NewPreVoteNil sets the preVoteNil field to a newly allocated PreVoteNil struct, preferring placement in s's segment.

func (RoundState) NewProposal

func (s RoundState) NewProposal() (Proposal, error)

NewProposal sets the proposal field to a newly allocated Proposal struct, preferring placement in s's segment.

func (RoundState) NewRCert

func (s RoundState) NewRCert() (RCert, error)

NewRCert sets the rCert field to a newly allocated RCert struct, preferring placement in s's segment.

func (RoundState) NextHeight

func (s RoundState) NextHeight() NextHeight

func (RoundState) NextRound

func (s RoundState) NextRound() NextRound

func (RoundState) PreCommit

func (s RoundState) PreCommit() PreCommit

func (RoundState) PreCommitNil

func (s RoundState) PreCommitNil() PreCommitNil

func (RoundState) PreVote

func (s RoundState) PreVote() PreVote

func (RoundState) PreVoteNil

func (s RoundState) PreVoteNil() PreVoteNil

func (RoundState) Proposal

func (s RoundState) Proposal() Proposal

func (RoundState) RCert

func (s RoundState) RCert() RCert

func (RoundState) SetConflictingNextHeight

func (s RoundState) SetConflictingNextHeight(v NextHeight) error

func (RoundState) SetConflictingPreCommit

func (s RoundState) SetConflictingPreCommit(v PreCommit) error

func (RoundState) SetConflictingPreVote

func (s RoundState) SetConflictingPreVote(v PreVote) error

func (RoundState) SetConflictingProposal

func (s RoundState) SetConflictingProposal(v Proposal) error

func (RoundState) SetConflictingRCert

func (s RoundState) SetConflictingRCert(v RCert) error

func (RoundState) SetGroupIdx

func (s RoundState) SetGroupIdx(v uint8)

func (RoundState) SetGroupKey

func (s RoundState) SetGroupKey(v []byte) error

func (RoundState) SetGroupShare

func (s RoundState) SetGroupShare(v []byte) error

func (RoundState) SetImplicitPCN

func (s RoundState) SetImplicitPCN(v bool)

func (RoundState) SetImplicitPVN

func (s RoundState) SetImplicitPVN(v bool)

func (RoundState) SetNextHeight

func (s RoundState) SetNextHeight(v NextHeight) error

func (RoundState) SetNextRound

func (s RoundState) SetNextRound(v NextRound) error

func (RoundState) SetPreCommit

func (s RoundState) SetPreCommit(v PreCommit) error

func (RoundState) SetPreCommitNil

func (s RoundState) SetPreCommitNil(v PreCommitNil) error

func (RoundState) SetPreVote

func (s RoundState) SetPreVote(v PreVote) error

func (RoundState) SetPreVoteNil

func (s RoundState) SetPreVoteNil(v PreVoteNil) error

func (RoundState) SetProposal

func (s RoundState) SetProposal(v Proposal) error

func (RoundState) SetRCert

func (s RoundState) SetRCert(v RCert) error

func (RoundState) SetVAddr

func (s RoundState) SetVAddr(v []byte) error

func (RoundState) String

func (s RoundState) String() string

func (RoundState) VAddr

func (s RoundState) VAddr() []byte

type RoundState_List

type RoundState_List struct{ capnp.List }

RoundState_List is a list of RoundState.

func NewRoundState_List

func NewRoundState_List(s *capnp.Segment, sz int32) (RoundState_List, error)

NewRoundState creates a new list of RoundState.

func (RoundState_List) At

func (s RoundState_List) At(i int) RoundState

func (RoundState_List) Set

func (s RoundState_List) Set(i int, v RoundState) error

func (RoundState_List) String

func (s RoundState_List) String() string

type RoundState_Promise

type RoundState_Promise struct{ *capnp.Pipeline }

RoundState_Promise is a wrapper for a RoundState promised by a client call.

func (RoundState_Promise) ConflictingNextHeight

func (p RoundState_Promise) ConflictingNextHeight() NextHeight_Promise

func (RoundState_Promise) ConflictingPreCommit

func (p RoundState_Promise) ConflictingPreCommit() PreCommit_Promise

func (RoundState_Promise) ConflictingPreVote

func (p RoundState_Promise) ConflictingPreVote() PreVote_Promise

func (RoundState_Promise) ConflictingProposal

func (p RoundState_Promise) ConflictingProposal() Proposal_Promise

func (RoundState_Promise) ConflictingRCert

func (p RoundState_Promise) ConflictingRCert() RCert_Promise

func (RoundState_Promise) NextHeight

func (p RoundState_Promise) NextHeight() NextHeight_Promise

func (RoundState_Promise) NextRound

func (p RoundState_Promise) NextRound() NextRound_Promise

func (RoundState_Promise) PreCommit

func (p RoundState_Promise) PreCommit() PreCommit_Promise

func (RoundState_Promise) PreCommitNil

func (p RoundState_Promise) PreCommitNil() PreCommitNil_Promise

func (RoundState_Promise) PreVote

func (p RoundState_Promise) PreVote() PreVote_Promise

func (RoundState_Promise) PreVoteNil

func (p RoundState_Promise) PreVoteNil() PreVoteNil_Promise

func (RoundState_Promise) Proposal

func (p RoundState_Promise) Proposal() Proposal_Promise

func (RoundState_Promise) RCert

func (RoundState_Promise) Struct

func (p RoundState_Promise) Struct() (RoundState, error)

type Validator

type Validator struct{ capnp.Struct }

func NewRootValidator

func NewRootValidator(s *capnp.Segment) (Validator, error)

func NewValidator

func NewValidator(s *capnp.Segment) (Validator, error)

func ReadRootValidator

func ReadRootValidator(msg *capnp.Message) (Validator, error)

func (Validator) GroupShare

func (s Validator) GroupShare() []byte

func (Validator) HasGroupShare

func (s Validator) HasGroupShare() bool

func (Validator) HasVAddr

func (s Validator) HasVAddr() bool

func (Validator) SetGroupShare

func (s Validator) SetGroupShare(v []byte) error

func (Validator) SetVAddr

func (s Validator) SetVAddr(v []byte) error

func (Validator) String

func (s Validator) String() string

func (Validator) VAddr

func (s Validator) VAddr() []byte

type ValidatorSet

type ValidatorSet struct{ capnp.Struct }

func NewRootValidatorSet

func NewRootValidatorSet(s *capnp.Segment) (ValidatorSet, error)

func NewValidatorSet

func NewValidatorSet(s *capnp.Segment) (ValidatorSet, error)

func ReadRootValidatorSet

func ReadRootValidatorSet(msg *capnp.Message) (ValidatorSet, error)

func (ValidatorSet) GroupKey

func (s ValidatorSet) GroupKey() []byte

func (ValidatorSet) HasGroupKey

func (s ValidatorSet) HasGroupKey() bool

func (ValidatorSet) HasValidators

func (s ValidatorSet) HasValidators() bool

func (ValidatorSet) NewValidators

func (s ValidatorSet) NewValidators(n int32) (Validator_List, error)

NewValidators sets the validators field to a newly allocated Validator_List, preferring placement in s's segment.

func (ValidatorSet) NotBefore

func (s ValidatorSet) NotBefore() uint32

func (ValidatorSet) SetGroupKey

func (s ValidatorSet) SetGroupKey(v []byte) error

func (ValidatorSet) SetNotBefore

func (s ValidatorSet) SetNotBefore(v uint32)

func (ValidatorSet) SetValidators

func (s ValidatorSet) SetValidators(v Validator_List) error

func (ValidatorSet) String

func (s ValidatorSet) String() string

func (ValidatorSet) Validators

func (s ValidatorSet) Validators() (Validator_List, error)

type ValidatorSet_List

type ValidatorSet_List struct{ capnp.List }

ValidatorSet_List is a list of ValidatorSet.

func NewValidatorSet_List

func NewValidatorSet_List(s *capnp.Segment, sz int32) (ValidatorSet_List, error)

NewValidatorSet creates a new list of ValidatorSet.

func (ValidatorSet_List) At

func (ValidatorSet_List) Set

func (ValidatorSet_List) String

func (s ValidatorSet_List) String() string

type ValidatorSet_Promise

type ValidatorSet_Promise struct{ *capnp.Pipeline }

ValidatorSet_Promise is a wrapper for a ValidatorSet promised by a client call.

func (ValidatorSet_Promise) Struct

func (p ValidatorSet_Promise) Struct() (ValidatorSet, error)

type Validator_List

type Validator_List struct{ capnp.List }

Validator_List is a list of Validator.

func NewValidator_List

func NewValidator_List(s *capnp.Segment, sz int32) (Validator_List, error)

NewValidator creates a new list of Validator.

func (Validator_List) At

func (s Validator_List) At(i int) Validator

func (Validator_List) Set

func (s Validator_List) Set(i int, v Validator) error

func (Validator_List) String

func (s Validator_List) String() string

type Validator_Promise

type Validator_Promise struct{ *capnp.Pipeline }

Validator_Promise is a wrapper for a Validator promised by a client call.

func (Validator_Promise) Struct

func (p Validator_Promise) Struct() (Validator, error)

Jump to

Keyboard shortcuts

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