Skip to main content

IntentScope

IntentScope Objects

class IntentScope(enum.Enum)

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:

intent-scope = u8

TRANSACTION_DATA

Used for a user signature on a transaction data.

TRANSACTION_EFFECTS

Used for an authority signature on transaction effects.

CHECKPOINT_SUMMARY

Used for an authority signature on a checkpoint summary.

PERSONAL_MESSAGE

Used for a user signature on a personal message.

SENDER_SIGNED_TRANSACTION

Used for an authority signature on a user signed transaction.

PROOF_OF_POSSESSION

Used as a signature representing an authority's proof of possession of its authority key.

BRIDGE_EVENT_DEPRECATED

Deprecated. Should not be reused. Introduced for bridge purposes but was never included in messages.

CONSENSUS_BLOCK

Used for consensus authority signature on block's digest.

DISCOVERY_PEERS

Used for reporting peer addresses in discovery

AUTHORITY_CAPABILITIES

Used for authority capabilities from non-committee authorities.