Documentation ¶
Index ¶
- Variables
- func ChecKSignature(blockHash hash.Hash, height uint32, round int16, sig *bls.Signature, ...) error
- func SignBytes(blockHash hash.Hash, height uint32, round int16) []byte
- type BasicCheckError
- type Proposal
- func (p *Proposal) BasicCheck() error
- func (p *Proposal) Block() *block.Block
- func (p *Proposal) Hash() hash.Hash
- func (p *Proposal) Height() uint32
- func (p *Proposal) IsForBlock(h hash.Hash) bool
- func (p *Proposal) MarshalCBOR() ([]byte, error)
- func (p *Proposal) Round() int16
- func (p *Proposal) SetSignature(sig *bls.Signature)
- func (p *Proposal) SignBytes() []byte
- func (p *Proposal) Signature() *bls.Signature
- func (p Proposal) String() string
- func (p *Proposal) UnmarshalCBOR(bs []byte) error
- func (p *Proposal) Verify(pubKey crypto.PublicKey) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoSignature = errors.New("no signature")
ErrNoSignature is returned when the proposal has no signature.
Functions ¶
func ChecKSignature ¶ added in v1.2.0
Types ¶
type BasicCheckError ¶ added in v1.5.0
type BasicCheckError struct {
Reason string
}
BasicCheckError is returned when the basic check on the proposal fails.
func (BasicCheckError) Error ¶ added in v1.5.0
func (e BasicCheckError) Error() string
type Proposal ¶
type Proposal struct {
// contains filtered or unexported fields
}
func (*Proposal) BasicCheck ¶ added in v0.15.0
func (*Proposal) MarshalCBOR ¶
func (*Proposal) SetSignature ¶
func (*Proposal) UnmarshalCBOR ¶
Click to show internal directories.
Click to hide internal directories.