mirror of
https://github.com/fluencelabs/js-libp2p-noise
synced 2025-06-17 16:41:30 +00:00
Fix tslint
This commit is contained in:
@ -10,7 +10,7 @@ export async function loadPayloadProto () {
|
||||
return payloadProtoBuf.lookupType("pb.NoiseHandshakePayload");
|
||||
}
|
||||
|
||||
export async function generateKeypair() : Promise<KeyPair> {
|
||||
export function generateKeypair() : KeyPair {
|
||||
const privateKey = x25519.privateKeyGenerate();
|
||||
const publicKey = x25519.publicKeyCreate(privateKey);
|
||||
|
||||
|
Reference in New Issue
Block a user