Skip to content

Firewall Lock

The firewall lock is a CKB lock script that checks a spend against the blacklist registry during consensus validation.

  • Loads the registry cell dep that matches the configured registry identity
  • Parses the BLKL payload from the registry cell data
  • Checks each output against the blacklist
  • Delegates to the wrapped inner lock if the blacklist check passes

The lock can be configured to check:

  • lock_args
  • type_args

Those checks are controlled by the lock-args flag byte.

The lock rejects if:

  • the registry dep is missing
  • more than one matching registry dep exists
  • the registry payload is malformed
  • the registry entries are not sorted
  • an output matches a blacklisted identifier

The lock is not a generic transaction simulator. Its job is to provide a hard consensus floor for a specific blacklist policy.