@tributary-so/sdk
    Preparing search index...

    Function lighthouseValidation

    • 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.

      Parameters

      Returns {
          init: {
              numPinnedAccounts: number;
              pinnedAccounts: { index: number; pubkey: PublicKey }[];
              validationData: Buffer;
          };
          spec: DecodeEnum;
      }