Skip to main content

IntentVersion

type IntentVersion​

Byte signifying the version of an Intent

The version here is to distinguish between signing different versions of the struct or enum. Serialized output between two different versions of the same struct/enum might accidentally (or maliciously on purpose) match.

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 IntentVersion uint
const (
IntentVersionV0 IntentVersion = 1
)

func (IntentVersion) ToDisplayString​

func (_self IntentVersion) 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.