Preparing search index...
The search index is not available
libp2p
libp2p
@libp2p/crypto
keys
generateKeyPair
Function generateKeyPair
generate
Key
Pair
(
type
)
:
Promise
<
Ed25519PrivateKey
>
Generates a keypair of the given type and bitsize
Parameters
type
:
"Ed25519"
Returns
Promise
<
Ed25519PrivateKey
>
generate
Key
Pair
(
type
)
:
Promise
<
Secp256k1PrivateKey
>
Parameters
type
:
"secp256k1"
Returns
Promise
<
Secp256k1PrivateKey
>
generate
Key
Pair
(
type
,
bits
?
)
:
Promise
<
RSAPrivateKey
>
Parameters
type
:
"RSA"
Optional
bits
:
number
Returns
Promise
<
RSAPrivateKey
>
generate
Key
Pair
(
type
,
bits
?
)
:
Promise
<
PrivateKey
>
Parameters
type
:
KeyType
Optional
bits
:
number
Returns
Promise
<
PrivateKey
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
libp2p
Loading...
Generates a keypair of the given type and bitsize