Crypto Lib
    Preparing search index...

    Function pruneExpiredKeys

    • Remove expired keys from the previous list.

      Keys whose expiresAt is before now are pruned. The current key is never pruned regardless of its expiry.

      Parameters

      • ring: KeyRing

        The key ring to prune.

      • Optionalnow: Date

        Reference time (defaults to new Date()).

      Returns KeyRing

      A new key ring with expired keys removed.

      ring = pruneExpiredKeys(ring);