buildMandateEnforcementScript
@totemsdk/kissvm / buildMandateEnforcementScript
Function: buildMandateEnforcementScript()
buildMandateEnforcementScript(
config):string
Build a mandate enforcement script that checks:
- Grantor signed the transaction
- Mandate scope matches the committed scope
- Mandate is not expired (@BLOCK <= expiresAtBlock)
- Mandate is not revoked (current epoch <= revocationEpoch)
- Nonce-based replay protection
Port layout: 0 — scope match hash 1 — revocation epoch 2 — expiresAt block 3 — nonce
Parameters
config
Returns
string