hornet

package
v1.2.8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: Apache-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LexicalOrderedMessageIDs added in v1.2.2

type LexicalOrderedMessageIDs MessageIDs

LexicalOrderedOutputs are MessageIDs ordered in lexical order.

func (LexicalOrderedMessageIDs) Len added in v1.2.2

func (l LexicalOrderedMessageIDs) Len() int

func (LexicalOrderedMessageIDs) Less added in v1.2.2

func (l LexicalOrderedMessageIDs) Less(i, j int) bool

func (LexicalOrderedMessageIDs) Swap added in v1.2.2

func (l LexicalOrderedMessageIDs) Swap(i, j int)

type MessageID added in v1.2.2

type MessageID []byte

MessageID is the ID of a Message.

func MessageIDFromArray added in v1.2.2

func MessageIDFromArray(b iotago.MessageID) MessageID

MessageIDFromArray creates a MessageID from a byte array.

func MessageIDFromHex added in v1.2.2

func MessageIDFromHex(hexString string) (MessageID, error)

MessageIDFromHex creates a MessageID from a hex string representation.

func MessageIDFromMapKey added in v1.2.2

func MessageIDFromMapKey(mapKey string) MessageID

MessageIDFromMapKey creates a MessageID from a map key representation.

func MessageIDFromSlice added in v1.2.2

func MessageIDFromSlice(b []byte) MessageID

MessageIDFromSlice creates a MessageID from a byte slice.

func NullMessageID added in v1.2.2

func NullMessageID() MessageID

NullMessageID returns the ID of the genesis message.

func (MessageID) MarshalBinary added in v1.2.2

func (m MessageID) MarshalBinary() ([]byte, error)

MarshalBinary implements the encoding.BinaryMarshaler interface.

func (MessageID) ToArray added in v1.2.2

func (m MessageID) ToArray() iotago.MessageID

ToArray converts the MessageID to an array.

func (MessageID) ToHex added in v1.2.2

func (m MessageID) ToHex() string

ToHex converts the MessageID to its hex representation.

func (MessageID) ToMapKey added in v1.2.2

func (m MessageID) ToMapKey() string

ToMapKey converts the MessageID to a string that can be used as a map key.

type MessageIDs added in v1.2.2

type MessageIDs []MessageID

MessageIDs is a slice of MessageID.

func MessageIDsFromHex added in v1.2.2

func MessageIDsFromHex(hexStrings []string) (MessageIDs, error)

MessageIDsFromHex creates a slice of MessageIDs from a slice of hex string representations.

func MessageIDsFromSliceOfArrays added in v1.2.2

func MessageIDsFromSliceOfArrays(b iotago.MessageIDs) MessageIDs

MessageIDsFromSliceOfArrays creates a slice of MessageIDs from a slice of arrays.

func (MessageIDs) RemoveDupsAndSortByLexicalOrder added in v1.2.2

func (m MessageIDs) RemoveDupsAndSortByLexicalOrder() MessageIDs

RemoveDupsAndSortByLexicalOrder returns a new slice of MessageIDs sorted by lexical order and without duplicates.

func (MessageIDs) ToHex added in v1.2.2

func (m MessageIDs) ToHex() []string

ToHex converts the MessageIDs to their hex string representation.

func (MessageIDs) ToSliceOfArrays added in v1.2.2

func (m MessageIDs) ToSliceOfArrays() iotago.MessageIDs

ToSliceOfArrays converts the MessageIDs to a slice of byte arrays.

func (MessageIDs) ToSliceOfSlices added in v1.2.2

func (m MessageIDs) ToSliceOfSlices() [][]byte

ToSliceOfSlices converts the MessageIDs to a slice of byte slices.

Jump to

Keyboard shortcuts

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