Skip to main content

IntentAppId

enum IntentAppId : Enum<IntentAppId>

Byte signifying the application id of an Intent

This enum specifies the application ID. Two intents in two different applications (i.e., IOTA, Ethereum etc) should never collide, so that even when a signing key is reused, nobody can take a signature designated for app_1 and present it as a valid signature for an (any) intent in app_2.

BCS

The BCS serialized form for this type is defined by the following ABNF:

intent-app-id = u8

Entries

IOTAIOTA
CONSENSUSCONSENSUS

Properties

NameSummary
entriesval entries: EnumEntries<IntentAppId>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
nameval name: String
ordinalval ordinal: Int

Functions

NameSummary
valueOffun valueOf(value: String): IntentAppId
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
valuesfun values(): Array<IntentAppId>
Returns an array containing the constants of this enum type, in the order they're declared.

CONSENSUS

CONSENSUS

Properties

NameSummary
nameval name: String
ordinalval ordinal: Int

IOTA

IOTA

Properties

NameSummary
nameval name: String
ordinalval ordinal: Int