mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-22 15:51:52 +00:00
fix: ts and lint errors
This commit is contained in:
@ -8,7 +8,7 @@ export async function generateEd25519Keys (): Promise<PrivateKey> {
|
||||
|
||||
export function getKeyPairFromPeerId (peerId: PeerId): KeyPair {
|
||||
return {
|
||||
privateKey: peerId.privKey.marshal().slice(0, 32),
|
||||
publicKey: peerId.marshalPubKey()
|
||||
privateKey: Buffer.from(peerId.privKey.marshal().slice(0, 32)),
|
||||
publicKey: Buffer.from(peerId.marshalPubKey())
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user