Documentation ¶
Index ¶
Constants ¶
View Source
const ( MsgSignLen = types.P2pSignatureLength + types.P2pAddressBech32Length + types.P2pPublicKeyLength ThresholdToHashBeforeSign = 128 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageSign ¶ added in v0.10.0
MessageSign
func (*MessageSign) Decode ¶ added in v0.10.0
func (s *MessageSign) Decode(sign []byte) int
func (*MessageSign) Encode ¶ added in v0.10.0
func (s *MessageSign) Encode(sign []byte) int
func (*MessageSign) Sign ¶ added in v0.10.0
func (s *MessageSign) Sign(hb []byte) error
type RelayMsgBuf ¶
type RelayMsgBuf struct { PacketId int64 MSGHead header.MessageHead MSGSign MessageSign MSGBody []byte MSGData []byte Alloc *[]byte }
RelayMsgBuf application layer internal buffer for msg,
func (*RelayMsgBuf) GetBytesAfterHeader ¶ added in v0.10.0
func (r *RelayMsgBuf) GetBytesAfterHeader() []byte
func (*RelayMsgBuf) GetHeader ¶ added in v0.10.0
func (r *RelayMsgBuf) GetHeader() []byte
func (*RelayMsgBuf) PutIntoBuffer ¶ added in v0.10.0
func (r *RelayMsgBuf) PutIntoBuffer(msg *RelayMsgBuf) int
Click to show internal directories.
Click to hide internal directories.