ts-algochat
    Preparing search index...

    Function derivePSKAtCounter

    • Derives the PSK for a specific counter value using the two-level ratchet.

      Parameters

      • initialPSK: Uint8Array

        The shared pre-shared key (32 bytes)

      • counter: number

        The ratchet counter

      Returns Uint8Array

      32-byte derived PSK for this counter