Documentation ¶
Index ¶
- Constants
- func Encode(val interface{}) ([]byte, error)
- type Message
- func (m *Message) Decode(val interface{}) error
- func (m *Message) DecodeRLP(s *rlp.Stream) error
- func (m *Message) EncodeRLP(w io.Writer) error
- func (m *Message) FromPayload(b []byte, validateFn func([]byte, []byte) (common.Address, error)) error
- func (m *Message) Payload() ([]byte, error)
- func (m *Message) PayloadNoSig() ([]byte, error)
- func (m *Message) String() string
- type State
Constants ¶
View Source
const ( MsgPreprepare uint64 = iota MsgPrepare MsgCommit MsgRoundChange )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { Code uint64 Msg []byte Address common.Address Signature []byte CommittedSeal []byte }
func (*Message) DecodeRLP ¶
DecodeRLP implements rlp.Decoder, and load the consensus fields from a RLP stream.
func (*Message) FromPayload ¶
func (*Message) PayloadNoSig ¶
Click to show internal directories.
Click to hide internal directories.