IntentScope
IntentScope
enum 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:
intent-scope = u8
IntentScope.authorityCapabilities
case authorityCapabilities
Used for authority capabilities from non-committee authorities.
IntentScope.bridgeEventDeprecated
case bridgeEventDeprecated
Deprecated. Should not be reused. Introduced for bridge purposes but was never included in messages.
IntentScope.checkpointSummary
case checkpointSummary
Used for an authority signature on a checkpoint summary.
IntentScope.consensusBlock
case consensusBlock
Used for consensus authority signature on block's digest.
IntentScope.discoveryPeers
case discoveryPeers
Used for reporting peer addresses in discovery
IntentScope.personalMessage
case personalMessage
Used for a user signature on a personal message.
IntentScope.proofOfPossession
case proofOfPossession
Used as a signature representing an authority's proof of possession of its authority key.
IntentScope.senderSignedTransaction
case senderSignedTransaction
Used for an authority signature on a user signed transaction.
IntentScope.transactionData
case transactionData
Used for a user signature on a transaction data.
IntentScope.transactionEffects
case transactionEffects
Used for an authority signature on transaction effects.
!=(_:_:)
static func != (lhs: Self, rhs: Self) -> Bool
Returns a Boolean value indicating whether two values are not equal.
Inequality is the inverse of equality. For any values a and b, a != b
implies that a == b is false.
This is the default implementation of the not-equal-to operator (!=)
for any type that conforms to Equatable.
- Parameters:
- lhs: A value to compare.
- rhs: Another value to compare.