Constructors
constructor
- new KeyPair(libp2pPeerId: PeerId): KeyPair
Properties
Libp2pPeerId
Libp2pPeerId: PeerId
Methods
toEd25519PrivateKey
- toEd25519PrivateKey(): Uint8Array
-
Returns Uint8Array
32 byte private key
Static fromEd25519SK
- fromEd25519SK(arr: Uint8Array): Promise<KeyPair>
-
Parameters
Returns Promise<KeyPair>
- Promise with the created KeyPair
Static randomEd25519
-
Returns Promise<KeyPair>
- Promise with the created KeyPair
Key pair in libp2p format. Used for backward compatibility with the current FluencePeer implementation