انتقل إلى المحتوى الرئيسي

Interface: PlatformGrantEvidence

Defined in: packages/messaging/src/ports.ts:154

What a platform grant is shown as, to the scope minter: who holds it and the key it is exercised on. The receiver builds it from the permission table alone (platformGrantHolders in @oktoid/contracts), because the grant is held per key (30).

holder is always one participant: the caller from the wiring in process; over the broker, the gateway the actor token's kid names, or the key's one unsigned broker caller (bootstrap). Before step 2.4 a key with two broker callers could only say "one of these"; the token's kid ended that.

Properties​

holder​

readonly holder: Participant

Defined in: packages/messaging/src/ports.ts:156

The participant holding the grant, known to be the caller.


key​

readonly key: RegistryKey

Defined in: packages/messaging/src/ports.ts:162

The key it is exercised on. A RegistryKey and not a ContractKey: a module's wiring also mints for a standing grant it holds, which is a registry key with no message behind it. The receiver only ever passes a request key.