*Update return type on getKeyPair
This commit is contained in:
parent
f7a696a65f
commit
84b69e09af
|
@ -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 };
|
||||||
|
|
Loading…
Reference in New Issue