Documentation ¶
Index ¶
- type Proposal
- func (p *Proposal) Block() *block.Block
- func (p Proposal) Fingerprint() string
- func (p *Proposal) Hash() hash.Hash
- func (p *Proposal) Height() uint32
- func (p *Proposal) IsForBlock(hash hash.Hash) bool
- func (p *Proposal) MarshalCBOR() ([]byte, error)
- func (p *Proposal) Round() int16
- func (p *Proposal) SanityCheck() error
- func (p *Proposal) SetPublicKey(crypto.PublicKey)
- func (p *Proposal) SetSignature(sig crypto.Signature)
- func (p *Proposal) SignBytes() []byte
- func (p *Proposal) Signature() crypto.Signature
- func (p *Proposal) UnmarshalCBOR(bs []byte) error
- func (p *Proposal) Verify(pubKey crypto.PublicKey) error
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 ¶
GenerateTestProposal generates a bond transaction for testing.
func (Proposal) Fingerprint ¶
func (*Proposal) MarshalCBOR ¶
func (*Proposal) SanityCheck ¶
func (*Proposal) SetPublicKey ¶
SetPublicKey is doing nothing and just satisfies SignableMsg interface.
func (*Proposal) SetSignature ¶
func (*Proposal) UnmarshalCBOR ¶
Click to show internal directories.
Click to hide internal directories.