@me2em/pact
    Preparing search index...

    Function evHash

    • Event id (PACTS ยง2): b64url(SHA-256(TBS)). Journal chaining, roster membership ids, ACT references and the JournalHead are all evHashes.

      Parameters

      • event: Event

        The event to hash.

      Returns string

      The b64url event hash (43 chars).

      const ref = evHash(invite); // ENROLL pl.ref / REVOKE_INVITE pl.ref