@me2em/pact
    Preparing search index...

    Function assembleEnroll

    • Assembles ENROLL — self-event, exactly the joiner signs (PACTS §7.5); w must repeat the INVITE weight verbatim (B-6).

      Parameters

      • events: Event[]

        The verified journal prefix.

      • input: EnrollInput

        ref — evHash of the accepted INVITE; optional display name, weight and voucher commit (D34).

      • signerKeys: Uint8Array[]

        Exactly one key — the joiner's pact key.

      • Optionalclock: Clock

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

      Returns Event

      The assembled, verified ENROLL event.

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

      const enroll = assembleEnroll(events, { ref: inviteHash }, [joinerKey]);