IIntent
Namespace: IotaSdk
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.
public interface IIntent : System.IEquatable`1[[IotaSdk.Intent, IotaSdk, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null]]
Implements IEquatable<Intent>
Attributes NullableContextAttribute
Methods
AppId()
Get the app id of the signing intent.
IntentAppId AppId()
Returns
Scope()
Get the scope of the signing intent.
IntentScope Scope()
Returns
ToBytes()
Convert the signing intent to bytes.
Byte[] ToBytes()
Returns
ToDisplayString()
Render this type as human-readable text.
Some types also print this through the binding's native string conversion; this method is the spelling every object type has.
The layout is meant for reading and can change between releases. Use the JSON or BCS conversions for output that gets parsed.
string ToDisplayString()
Returns
Version()
Get the version of the signing intent.
IntentVersion Version()