AuthorizationScope

data class AuthorizationScope(val flags: Int)

What the access key is authorized to do.

Encoded as a 32-bit flags field for extensibility. The three tiers from the sigil authority model:

  • SILENT: read state, query balances

  • NOTIFY: small spends, agent actions

  • APPROVE: large spends, deploy contracts, key delegation

FULL_ACCESS = all flags set.

Constructors

Link copied to clipboard
constructor(flags: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val flags: Int

Functions

Link copied to clipboard
fun hasPermission(permission: Int): Boolean