Fix tslint

This commit is contained in:
morrigan
2019-11-21 14:43:12 +01:00
parent b2d058291c
commit f5888f6405
7 changed files with 32 additions and 16 deletions

View File

@ -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);