@me2em/pact
    Preparing search index...

    Function positionOf

    • Head position of a verified prefix: next sq, head hash, pid.

      Parameters

      • events: Event[]

        The verified prefix (non-empty).

      Returns { sq: number; ph: string; pid: string }

      { sq, ph, pid } for building the next event.

      PactError MALFORMED @ assemble on an empty prefix — a journal starts with assembleGenesis, not here.

      const pos = positionOf(events); // { sq: 3, ph: '…', pid: '…' }