@me2em/pact
    Preparing search index...

    Function tbsBytes

    • To-be-signed bytes: JCS(event without the sig field). typ/pid inside TBS give domain separation and anti-replay (D32).

      Parameters

      • event: Event

        The event (its sig field is excluded).

      Returns Uint8Array

      The canonical bytes every signature is computed and verified over.

      const s = crypto.sign(tbsBytes(event), pactKey);