encode

package
v0.0.0-...-1cd09a4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2018 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rc4Enc

func Rc4Enc(key, mes []byte) ([]byte, error)

Rc4Enc Encrypt the byte message using RC4 encryption

Types

type Message

type Message struct {
	// contains filtered or unexported fields
}

Message is the wrapper structure that contain main transaction body of message

func (*Message) Load

func (m *Message) Load(b []byte) error

Load create XCPCMessage structure from byte array

func (*Message) Serialize

func (m *Message) Serialize() error

Serialize generate byte array from XCPCmessage structure

type TypeError

type TypeError struct {
	Msg string
}

TypeError indicate the message is not a valid xcpc_tx message

func (TypeError) Error

func (e TypeError) Error() string

Jump to

Keyboard shortcuts

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