ts-algochat
    Preparing search index...

    Function deriveSessionPSK

    • Derives a session PSK from the initial PSK and session index.

      Parameters

      • initialPSK: Uint8Array

        The shared pre-shared key (32 bytes)

      • sessionIndex: number

        Session index (counter / SESSION_SIZE)

      Returns Uint8Array

      32-byte session PSK