Getting Started
Prerequisites
Setup
The nix shell provides GHC, cabal, fourmolu, hlint, and a local cardano-node for E2E testing.
Build
Usage
1. Write a CDDL schema
Create a .cddl file with key and value rules:
Both key and value must be defined. They describe the shapes of CBOR-encoded data that the withdrawal validator will enforce.
2. Compile
Output:
3. Build the Aiken project
This produces a Plutus blueprint in plutus.json containing the compiled validator script.
4. Deploy
Extract the compiled code from the blueprint and use it as a withdrawal validator parameterizing your MPFS cage.