encoding

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodedPayloadData added in v1.0.2

type EncodedPayloadData struct {
	Sender         []byte
	Nonce          []byte
	Cipher         []byte
	RecipientNonce []byte
	RecipientList  [][]byte
}

EncodedPayloadData holds the encoded payload data (sender,nonce,cipher,recipientNonce and list)

func Deserialize

func Deserialize(encodedPayload []byte) *EncodedPayloadData

Deserialize obj

func EncodePayloadData

func EncodePayloadData(payload []byte, sender []byte, recipients [][]byte) (*EncodedPayloadData, error)

EncodePayloadData encode payload data

func (*EncodedPayloadData) Decode added in v1.0.2

func (e *EncodedPayloadData) Decode(to []byte) []byte

Decode will decode

func (*EncodedPayloadData) Serialize added in v1.0.2

func (e *EncodedPayloadData) Serialize() *[]byte

Serialize obj

Jump to

Keyboard shortcuts

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