internal

package
v0.0.0-...-d578c97 Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Packet

type Packet struct {
	Dst     utils.NodeID    `msgpack:"dst"`
	Src     utils.NodeID    `msgpack:"src"`
	Type    string          `msgpack:"type"`
	Payload []byte          `msgpack:"payload"`
	S       utils.Signature `msgpack:"sign"`
	TTL     uint8           `msgpack:"ttl"`
}

func (*Packet) Serialize

func (p *Packet) Serialize() []byte

func (*Packet) Sign

func (p *Packet) Sign(key *utils.PrivateKey) error

func (*Packet) Verify

func (p *Packet) Verify(key *utils.PublicKey) bool

Jump to

Keyboard shortcuts

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