Bridge a built LighthouseAssertion into a { spec, init } pair
suitable for createComposablePolicy's preValidation / postValidation
phase.
This is also the escape hatch for custom assertions that don't have a
dedicated recipe yet — build the assertion via the lighthouse facade
(packages/sdk/src/lighthouse.ts) and pass it here.
Pure function — no I/O. The assertion's accounts are mapped to their
pubkeys and indexed by makeValidationInit; the assertion data is
stored verbatim in the ValidationPda.
Bridge a built LighthouseAssertion into a
{ spec, init }pair suitable forcreateComposablePolicy'spreValidation/postValidationphase.This is also the escape hatch for custom assertions that don't have a dedicated recipe yet — build the assertion via the
lighthousefacade (packages/sdk/src/lighthouse.ts) and pass it here.Pure function — no I/O. The assertion's
accountsare mapped to their pubkeys and indexed bymakeValidationInit; the assertiondatais stored verbatim in the ValidationPda.