proposal

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Proposal

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

func GenerateTestProposal

func GenerateTestProposal(height uint32, round int16) (*Proposal, crypto.Signer)

GenerateTestProposal generates a bond transaction for testing.

func NewProposal

func NewProposal(height uint32, round int16, block *block.Block) *Proposal

func (*Proposal) Block

func (p *Proposal) Block() *block.Block

func (Proposal) Fingerprint

func (p Proposal) Fingerprint() string

func (*Proposal) Hash

func (p *Proposal) Hash() hash.Hash

func (*Proposal) Height

func (p *Proposal) Height() uint32

func (*Proposal) IsForBlock

func (p *Proposal) IsForBlock(hash hash.Hash) bool

func (*Proposal) MarshalCBOR

func (p *Proposal) MarshalCBOR() ([]byte, error)

func (*Proposal) Round

func (p *Proposal) Round() int16

func (*Proposal) SanityCheck

func (p *Proposal) SanityCheck() error

func (*Proposal) SetPublicKey

func (p *Proposal) SetPublicKey(crypto.PublicKey)

SetPublicKey is doing nothing and just satisfies SignableMsg interface.

func (*Proposal) SetSignature

func (p *Proposal) SetSignature(sig crypto.Signature)

func (*Proposal) SignBytes

func (p *Proposal) SignBytes() []byte

func (*Proposal) Signature

func (p *Proposal) Signature() crypto.Signature

func (*Proposal) UnmarshalCBOR

func (p *Proposal) UnmarshalCBOR(bs []byte) error

func (*Proposal) Verify

func (p *Proposal) Verify(pubKey crypto.PublicKey) error

Jump to

Keyboard shortcuts

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