@me2em/pact
    Preparing search index...

    Function assembleExit

    • Assembles EXIT — self-event, signed by the exiting member's current key (D18a); the member leaves the ACTIVE roster.

      Parameters

      • events: Event[]

        The verified journal prefix.

      • input: ExitInput

        Optional reason (≤ 256 chars).

      • signerKeys: Uint8Array[]

        Exactly one key — the exiting member's pact key.

      • Optionalclock: Clock

        Optional clock injection (Р4); defaults to the system clock.

      Returns Event

      The assembled, verified EXIT event.

      PactError MALFORMED @ assemble when signerKeys is not exactly one key; verification failures propagate from finalize.

      const exit = assembleExit(events, { rs: 'leaving' }, [memberKey]);