message

package
v0.0.0-...-bc2601f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2019 License: MIT Imports: 8 Imported by: 0

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

func NewProtocolMessageMetadata(author crypto.PublicKey, protocol string) *pb.Metadata

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL