IntentInterface
interface IntentInterface
A Signing Intent
An intent is a compact struct that serves as the domain separator for a message that a signature commits to. It consists of three parts:
- IntentScope (what the type of the message is)
- IntentVersion
- IntentAppId (what application the signature refers to).
The serialization of an Intent is a 3-byte array where each field is represented by a byte and it is prepended onto a message before it is signed in IOTA.
BCS
The BCS serialized form of this type is specified in bcs-schema.abnf.
Inheritors
| Intent |
Functions
| Name | Summary |
|---|---|
| appId | abstract fun appId(): IntentAppId Get the app id of the signing intent. |
| scope | abstract fun scope(): IntentScope Get the scope of the signing intent. |
| toBytes | abstract fun toBytes(): ByteArray Convert the signing intent to bytes. |
| toDisplayString | abstract fun toDisplayString(): String Render this type as human-readable text. |
| version | abstract fun version(): IntentVersion Get the version of the signing intent. |