From 84b69e09af1a6570723887dcf0f40fa78baff5c3 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Mon, 19 Dec 2022 07:12:10 -0500 Subject: [PATCH] *Update return type on getKeyPair --- src/lib/seed.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/seed.ts b/src/lib/seed.ts index 9ccde2b..a78e6d1 100644 --- a/src/lib/seed.ts +++ b/src/lib/seed.ts @@ -21,7 +21,7 @@ export function getHDKey(): HDKey { return HDKey.fromMasterSeed(getSeed()).derive(BIP44_PATH); } -export function getKeyPair() { +export function getKeyPair(): { publicKey: Uint8Array; secretKey: Uint8Array } { const key = getHDKey(); return { publicKey: key.publicKeyRaw, secretKey: key.privateKey };