Documentation ¶
Index ¶
Constants ¶
View Source
const ( ETOnArbiter events.EventType = 2001 ETRequireArbiter events.EventType = 2002 ETReqArbiterSig events.EventType = 2003 ETFeedBackArbiterSig events.EventType = 2004 ETESCStateChanged events.EventType = 2005 )
Constants for the type of a notification message.
View Source
const ( CmdDArbiter = "arbiter" CmdRequireArbiters = "req_arbiter" CmdRequireArbitersSignature = "req_a_sig" CmdFeedbackArbiterSignature = "ret_a_sig" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DArbiter ¶
type DArbiter struct { // The peer ID indicates who's address it is. PID [33]byte // Timestamp represents the time when this message created. Timestamp time.Time // Which peer ID is used to encode the address cipher. Encode [33]byte // The encrypted network address using the encode peer ID. Cipher []byte // Signature of the encode peer ID and cipher to proof the sender itself. Signature []byte // is current consensus producers IsCurrent bool }
type FeedBackArbitersSignature ¶
func (*FeedBackArbitersSignature) CMD ¶
func (m *FeedBackArbitersSignature) CMD() string
func (*FeedBackArbitersSignature) Deserialize ¶
func (m *FeedBackArbitersSignature) Deserialize(r io.Reader) error
func (*FeedBackArbitersSignature) MaxLength ¶
func (m *FeedBackArbitersSignature) MaxLength() uint32
type RequireArbiter ¶
func (*RequireArbiter) CMD ¶
func (msg *RequireArbiter) CMD() string
func (*RequireArbiter) Deserialize ¶
func (msg *RequireArbiter) Deserialize(r io.Reader) error
func (*RequireArbiter) MaxLength ¶
func (msg *RequireArbiter) MaxLength() uint32
type RequireArbitersSignature ¶
func (*RequireArbitersSignature) CMD ¶
func (msg *RequireArbitersSignature) CMD() string
func (*RequireArbitersSignature) Deserialize ¶
func (msg *RequireArbitersSignature) Deserialize(r io.Reader) error
func (*RequireArbitersSignature) MaxLength ¶
func (msg *RequireArbitersSignature) MaxLength() uint32
Click to show internal directories.
Click to hide internal directories.