Skip to main content

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 for this type is defined by the following ABNF:

```text intent-scope = u8 ```

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
)