Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AuthAuthor ¶
func AuthAuthor(pm *pb.ProtocolMessage) error
AuthAuthor authorizes that a message is signed by its claimed author
func NewProtocolMessageMetadata ¶
NewProtocolMessageMetadata creates meta-data for an outgoing protocol message authored by this node.
func PrepareMessage ¶
func PrepareMessage(ns net.NetworkSession, data []byte) ([]byte, error)
PrepareMessage prepares a message for sending on a given session, session must be checked first
func SignMessage ¶
func SignMessage(pv crypto.PrivateKey, pm *pb.ProtocolMessage) error
SignMessage signs a message with a privatekey.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.