IntentScope
type IntentScope
Byte signifying the scope of an Intent
This enum specifies the intent scope. Two intents for different scopes should never collide, so no signature provided for one intent scope can be used for another, even when the serialized data itself may be the same.
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 IntentScope uint
const (
// Used for a user signature on a transaction data.
IntentScopeTransactionData IntentScope = 1
// Used for an authority signature on transaction effects.
IntentScopeTransactionEffects IntentScope = 2
// Used for an authority signature on a checkpoint summary.
IntentScopeCheckpointSummary IntentScope = 3
// Used for a user signature on a personal message.
IntentScopePersonalMessage IntentScope = 4
// Used for an authority signature on a user signed transaction.
IntentScopeSenderSignedTransaction IntentScope = 5
// Used as a signature representing an authority's proof of possession of its authority key.
IntentScopeProofOfPossession IntentScope = 6
// Deprecated. Should not be reused. Introduced for bridge purposes but was never included in
// messages.
IntentScopeBridgeEventDeprecated IntentScope = 7
// Used for consensus authority signature on block's digest.
IntentScopeConsensusBlock IntentScope = 8
// Used for reporting peer addresses in discovery
IntentScopeDiscoveryPeers IntentScope = 9
// Used for authority capabilities from non-committee authorities.
IntentScopeAuthorityCapabilities IntentScope = 10
)
func (IntentScope) ToDisplayString
func (_self IntentScope) 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.