Function exportKeyPair

  • Exports Ed25519 CryptoKeyPair to KeyPair If any of the keys are already Buffer, then this will return them. The returned buffers is guaranteed to unpooled. This means the underlying ArrayBuffer is safely transferrable.

    Parameters

    • keyPair: {
          privateKey: CryptoKey;
          publicKey: CryptoKey;
      }
      • privateKey: CryptoKey
      • publicKey: CryptoKey

    Returns Promise<KeyPair>

Generated using TypeDoc