Module proxy

source · []
Expand description

Code related to proxying CryptoKey and CryptoKeyPair

Functions

Type Parameters

Parameters

  • handler: ProxyHandler<TKey>

Returns ((key: TKey) => TProxKey)

    • (key: TKey): TProxKey
    • Parameters

      • key: TKey

      Returns TProxKey

Type Parameters

  • TKeyPair extends CryptoKeyPair

  • TPrivKey extends CryptoKey

  • TProxPrivKey extends ProxiedCryptoKey<TPrivKey, TProxPrivKey>

  • TPubKey extends CryptoKey

  • TProxPubKey extends ProxiedCryptoKey<TPubKey, TProxPubKey>

Parameters

Returns ((keyPair: TKeyPair) => ProxiedCryptoKeyPair<TKeyPair, TPrivKey, TProxPrivKey, TPubKey, TProxPubKey>)

    • Parameters

      • keyPair: TKeyPair

      Returns ProxiedCryptoKeyPair<TKeyPair, TPrivKey, TProxPrivKey, TPubKey, TProxPubKey>

Interfaces