Skip to main content

IntentAppId

type 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 of this type is specified in [`bcs-schema.abnf`](https://github.com/iotaledger/iota-rust-sdk/blob/develop/crates/iota-sdk-types/bcs-schema.abnf\).

type IntentAppId uint
const (
IntentAppIdIota IntentAppId = 1
IntentAppIdConsensus IntentAppId = 2
)

func (IntentAppId) ToDisplayString​

func (_self IntentAppId) ToDisplayString() string

Render this type as human-readable text.

The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.