Tool to create custom Compact modules to provide authorization logic

Hey! I want to share a project we’ve been working on at TxPipe, that will be released as open-source: Warden Tool!
It’s a CLI that generates Compact authorization contracts for the Midnight blockchain from a simple JSON schema.
You can define who can access your circuits with:

  • Commitment verification — secret/randomness-based identity (like signatures, but for ZK),
  • Time locks — block-based after/before constraints,
  • Combinators — any, all, atLeast for composing policies,

Workflow: define your policy in JSON, feed it to the tool, get a ready-to-compile Warden.compact module. Import the generated module into your Compact program to enforce the policy.

Check out the quick demo: https://youtu.be/STn0qmZW-e8

Built with TypeScript + Midnight’s Compact runtime.
:link: GitHub - txpipe-shop/compact-native-scripts · GitHub
Note: not yet production-ready — expect breaking changes as we iterate.

2 Likes