Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

Permission demo

Reference consumer for permbook.

summary · holders · about

About

Two permission-gated entrypoints, deliberately trivial so that the only interesting thing about them is the gate:

  • Bump requires bump
  • SetNotice requires notice

The deployer is the book's admin and is the only account that may grant or revoke. Holding a permission confers no authority over the book: a holder cannot grant, cannot revoke, and cannot nominate an admin.

The claim this realm makes falsifiable is that a permission revoked in one transaction is refused in the next. Grant bump, call Bump — it succeeds. Revoke, call Bump again — it aborts. A pure package cannot show that; only a realm called across several transactions can.

This realm holds no coins and imports no banker. Every crossing entrypoint rejects attached coins, and the read views are non-crossing so no transaction can attach coins to one.

  • max permissions: 8
  • max holders per permission: 32
  • max permission name length: 24
  • max notice length: 200 bytes