Hooks & tapleaf compute
๐ Draft. This chapter has not been reviewed yet โ content may be incomplete or change.
Problem. Compute and store values mid-action โ especially covenant script hashes that depend on other covenant script hashes.
๐ง This recipe is a stub. Outline of what it will cover:
- Hook blocks:
on_resolved(per input) andon_pre_broadcast(per action), each runningsetassignments in declaration order.- Assignment targets:
compile_params.X,params.X,args.X.- The tapleaf compute spec (
lang: "tapleaf"): compiling a.simfto a covenant script hash, withparamsanddepends_on.- Circular dependencies: when two covenants each reference the other's hash, seed with 32 zero bytes and iterate to convergence.
See Spec.md ยง5.5 and ยง11 Step 3
in the meantime.