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
MessageIDFromArray creates a MessageID from a byte array.
func MessageIDFromHex ¶ added in v1.2.2
MessageIDFromHex creates a MessageID from a hex string representation.
func MessageIDFromMapKey ¶ added in v1.2.2
MessageIDFromMapKey creates a MessageID from a map key representation.
func MessageIDFromSlice ¶ added in v1.2.2
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
MarshalBinary implements the encoding.BinaryMarshaler interface.
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.