Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Commit

Permalink
Prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
BTChip github committed Jan 31, 2022
1 parent 2db304c commit 9fe4f88
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/hw-app-eth/src/Eth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ export default class Eth {
"setExternalPlugin",
"setPlugin",
"getEIP1024PublicEncryptionKey",
"getEIP1024SharedSecret"
"getEIP1024SharedSecret",
],
scrambleKey
);
Expand Down Expand Up @@ -1167,14 +1167,14 @@ export default class Eth {
/**
* get a shared secret on Curve25519 according to EIP 1024
* @param path a path in BIP 32 format
* @param remotePublicKeyHex remote Curve25519 public key
* @param remotePublicKeyHex remote Curve25519 public key
* @option boolDisplay optionally enable or not the display
* @return an object with a shared secret
* @example
* eth.getEIP1024SharedSecret("44'/60'/0'/0/0", "87020e80af6e07a6e4697f091eacadb9e7e6629cb7e5a8a371689a3ed53b3d64").then(o => o.sharedSecret)
*/
getEIP1024SharedSecret(
path: string,
path: string,
remotePublicKeyHex: string,
boolDisplay?: boolean
): Promise<{
Expand All @@ -1189,7 +1189,7 @@ export default class Eth {
buffer.writeUInt32BE(element, 1 + 4 * index);
});
offset = 1 + 4 * paths.length;
remotePublicKey.copy(buffer, offset);
remotePublicKey.copy(buffer, offset);
return this.transport
.send(0xe0, 0x18, boolDisplay ? 0x01 : 0x00, 0x01, buffer)
.then((response) => {
Expand Down

0 comments on commit 9fe4f88

Please sign in to comment.