*Update return type on getKeyPair

This commit is contained in:
Derrick Hammer 2022-12-19 07:12:10 -05:00
parent f7a696a65f
commit 84b69e09af
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -21,7 +21,7 @@ export function getHDKey(): HDKey {
return HDKey.fromMasterSeed(getSeed()).derive(BIP44_PATH); return HDKey.fromMasterSeed(getSeed()).derive(BIP44_PATH);
} }
export function getKeyPair() { export function getKeyPair(): { publicKey: Uint8Array; secretKey: Uint8Array } {
const key = getHDKey(); const key = getHDKey();
return { publicKey: key.publicKeyRaw, secretKey: key.privateKey }; return { publicKey: key.publicKeyRaw, secretKey: key.privateKey };