Preparing search index...
The search index is not available
libp2p
libp2p
@libp2p/peer-id-factory
createFromJSON
Function createFromJSON
create
FromJSON
(
obj
)
:
Promise
<
Ed25519PeerId
|
Secp256k1PeerId
|
RSAPeerId
>
Parameters
obj
:
{
id
:
string
;
privKey
?:
string
;
pubKey
?:
string
;
}
id
:
string
Optional
priv
Key
?:
string
Optional
pub
Key
?:
string
Returns
Promise
<
Ed25519PeerId
|
Secp256k1PeerId
|
RSAPeerId
>
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
libp2p
Loading...