protocol

package
v2.0.6 Latest Latest
Warning

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

Go to latest
Published: May 28, 2024 License: Apache-2.0 Imports: 13 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConstants

func NewConstants(proto *tz.ProtocolHash) (constants core.Constants, err error)

func NewDelegateInfo

func NewDelegateInfo(proto *tz.ProtocolHash) (delegate core.DelegateInfo, err error)

Types

type AttestationSignRequest

type AttestationSignRequest struct {
	Chain     *tz.ChainID
	Branch    *tz.BlockHash
	Operation latest.InlinedEndorsementContents
}

func (*AttestationSignRequest) GetChainID

func (r *AttestationSignRequest) GetChainID() *tz.ChainID

func (*AttestationSignRequest) GetLevel

func (r *AttestationSignRequest) GetLevel() int32

func (*AttestationSignRequest) GetRound

func (r *AttestationSignRequest) GetRound() int32

func (*AttestationSignRequest) SignRequestKind

func (*AttestationSignRequest) SignRequestKind() string

type BlockHeaderInfo

type BlockHeaderInfo interface {
	GetChainID() *tz.ChainID
	GetHash() *tz.BlockHash
	core.BlockHeader
}

func NewBlockHeaderInfo

func NewBlockHeaderInfo(proto *tz.ProtocolHash) (BlockHeaderInfo, error)

type BlockInfo

type BlockInfo interface {
	GetChainID() *tz.ChainID
	GetHash() *tz.BlockHash
	GetHeader() core.BlockHeader
	GetMetadata() tz.Option[core.BlockMetadata]
	GetOperations() [][]core.OperationsGroup
}

func NewBlockInfo

func NewBlockInfo(proto *tz.ProtocolHash) (BlockInfo, error)

type BlockSignRequest

type BlockSignRequest struct {
	Chain       *tz.ChainID
	BlockHeader latest.UnsignedBlockHeader
}

func (*BlockSignRequest) GetChainID

func (r *BlockSignRequest) GetChainID() *tz.ChainID

func (*BlockSignRequest) GetLevel

func (r *BlockSignRequest) GetLevel() int32

func (*BlockSignRequest) GetRound

func (r *BlockSignRequest) GetRound() int32

func (*BlockSignRequest) SignRequestKind

func (*BlockSignRequest) SignRequestKind() string

type EndorsementSignRequest

type EndorsementSignRequest = AttestationSignRequest

type GenericOperationSignRequest

type GenericOperationSignRequest latest.UnsignedOperation

func (*GenericOperationSignRequest) SignRequestKind

func (*GenericOperationSignRequest) SignRequestKind() string

type PreattestationSignRequest

type PreattestationSignRequest struct {
	Chain     *tz.ChainID
	Branch    *tz.BlockHash
	Operation latest.InlinedPreendorsementContents
}

func (*PreattestationSignRequest) GetChainID

func (r *PreattestationSignRequest) GetChainID() *tz.ChainID

func (*PreattestationSignRequest) GetLevel

func (r *PreattestationSignRequest) GetLevel() int32

func (*PreattestationSignRequest) GetRound

func (r *PreattestationSignRequest) GetRound() int32

func (*PreattestationSignRequest) SignRequestKind

func (*PreattestationSignRequest) SignRequestKind() string

type PreendorsementSignRequest

type PreendorsementSignRequest = PreattestationSignRequest

type SignRequest

type SignRequest interface {
	SignRequestKind() string
}

Jump to

Keyboard shortcuts

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