attachments

package
v0.19.4 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2020 License: LGPL-3.0 Imports: 5 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateBurnAttachment

func CreateBurnAttachment(key string) []byte

func CreateChangeProfileAttachment

func CreateChangeProfileAttachment(hash []byte) []byte

func CreateDeleteFlipAttachment

func CreateDeleteFlipAttachment(cid []byte) []byte

func CreateFlipSubmitAttachment

func CreateFlipSubmitAttachment(cid []byte, pair uint8) []byte

func CreateOnlineStatusAttachment

func CreateOnlineStatusAttachment(online bool) []byte

func CreateShortAnswerAttachment

func CreateShortAnswerAttachment(answers []byte, proof []byte, salt []byte, key *ecies.PrivateKey) []byte

Types

type BurnAttachment

type BurnAttachment struct {
	Key string
}

func ParseBurnAttachment

func ParseBurnAttachment(tx *types.Transaction) *BurnAttachment

type ChangeProfileAttachment

type ChangeProfileAttachment struct {
	Hash []byte
}

func ParseChangeProfileAttachment

func ParseChangeProfileAttachment(tx *types.Transaction) *ChangeProfileAttachment

type DeleteFlipAttachment

type DeleteFlipAttachment struct {
	Cid []byte
}

func ParseDeleteFlipAttachment

func ParseDeleteFlipAttachment(tx *types.Transaction) *DeleteFlipAttachment

type FlipSubmitAttachment

type FlipSubmitAttachment struct {
	Cid  []byte
	Pair uint8
}

func ParseFlipSubmitAttachment

func ParseFlipSubmitAttachment(tx *types.Transaction) *FlipSubmitAttachment

type OnlineStatusAttachment

type OnlineStatusAttachment struct {
	Online bool
}

func ParseOnlineStatusAttachment

func ParseOnlineStatusAttachment(tx *types.Transaction) *OnlineStatusAttachment

type ShortAnswerAttachment

type ShortAnswerAttachment struct {
	Answers []byte
	Proof   []byte
	Key     []byte
	Salt    []byte
}

func ParseShortAnswerAttachment

func ParseShortAnswerAttachment(tx *types.Transaction) *ShortAnswerAttachment

func ParseShortAnswerBytesAttachment

func ParseShortAnswerBytesAttachment(payload []byte) *ShortAnswerAttachment

Jump to

Keyboard shortcuts

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