@me2em/pact
    Preparing search index...

    Function signaturesFor

    • Signs the TBS of raw with each pact key. Duplicate keys reject (signer distinctness is normative — PACTS §7.6).

      Parameters

      • raw: Omit<Event, "sig">

        The event without sig (typ/pid/sq/ph/ty/pl/iat).

      • keys: Uint8Array[]

        Pact private keys to sign with — one signature each.

      Returns Signature[]

      The signature list (p = b64url pactPub, s = b64url Ed25519 signature over TBS).

      PactError MALFORMED @ assemble on a duplicate signer key.

      const sig = signaturesFor(raw, [founderKey]);