Documentation
    Preparing search index...

    Function compilePolicy

    • Check the structure of a policy and parse its selectors.

      This does not check that == / != values are IPLD values. Delegations are fully validated with assertPolicy (in utils.js) when created or decoded.

      Parameters

      • policy: unknown

      Returns CompiledStatement[]

      If the policy is malformed.