Type Alias PrivateSecretKey<I, Asym>

PrivateSecretKey: If<
    Asym,
    CryptoAlgorithm.PrivateKey<I>,
    CryptoAlgorithm.SecretKey<I>,
>

Pick PrivateKey or SecretKey based on whether the algorithm is asymmetric.

Type Parameters

  • I = any
  • Asym extends boolean = any