Documentation ¶
Index ¶
- func CreateBurnAttachment(key string) []byte
- func CreateChangeProfileAttachment(hash []byte) []byte
- func CreateDeleteFlipAttachment(cid []byte) []byte
- func CreateFlipSubmitAttachment(cid []byte, pair uint8) []byte
- func CreateOnlineStatusAttachment(online bool) []byte
- func CreateShortAnswerAttachment(answers []byte, proof []byte, salt []byte, key *ecies.PrivateKey) []byte
- type BurnAttachment
- type ChangeProfileAttachment
- type DeleteFlipAttachment
- type FlipSubmitAttachment
- type OnlineStatusAttachment
- type ShortAnswerAttachment
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBurnAttachment ¶
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 ¶
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 ¶
func ParseShortAnswerAttachment ¶
func ParseShortAnswerAttachment(tx *types.Transaction) *ShortAnswerAttachment
func ParseShortAnswerBytesAttachment ¶
func ParseShortAnswerBytesAttachment(payload []byte) *ShortAnswerAttachment
Click to show internal directories.
Click to hide internal directories.