aboutsummaryrefslogtreecommitdiffstats
path: root/packages/subproviders/src/globals.d.ts
diff options
context:
space:
mode:
authorLeonid <logvinov.leon@gmail.com>2017-12-18 23:09:22 +0800
committerGitHub <noreply@github.com>2017-12-18 23:09:22 +0800
commitbb6d594ec77390ab112b557e7843974ec205bcb8 (patch)
tree8d8887a6cd259b589579646216cce8986c02f48b /packages/subproviders/src/globals.d.ts
parentfe8f2d87c79cb25a7879c2e737dbdd64b7c40f60 (diff)
parenta57dda2c2a47671b0766c7c28d24560e3000ca66 (diff)
downloaddexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.tar
dexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.tar.gz
dexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.tar.bz2
dexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.tar.lz
dexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.tar.xz
dexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.tar.zst
dexon-sol-tools-bb6d594ec77390ab112b557e7843974ec205bcb8.zip
Merge pull request #271 from 0xProject/fix/ledger-derivation
Implement ledger optimization for address derivation
Diffstat (limited to 'packages/subproviders/src/globals.d.ts')
-rw-r--r--packages/subproviders/src/globals.d.ts13
1 files changed, 12 insertions, 1 deletions
diff --git a/packages/subproviders/src/globals.d.ts b/packages/subproviders/src/globals.d.ts
index adef23806..3800c970f 100644
--- a/packages/subproviders/src/globals.d.ts
+++ b/packages/subproviders/src/globals.d.ts
@@ -48,7 +48,7 @@ declare module 'ledgerco' {
public comm: comm;
constructor(comm: comm);
public getAddress_async(path: string, display?: boolean, chaincode?: boolean):
- Promise<{publicKey: string; address: string}>;
+ Promise<{publicKey: string; address: string; chainCode: string}>;
public signTransaction_async(path: string, rawTxHex: string): Promise<ECSignatureString>;
public getAppConfiguration_async(): Promise<{ arbitraryDataEnabled: number; version: string }>;
public signPersonalMessage_async(path: string, messageHex: string): Promise<ECSignature>;
@@ -91,3 +91,14 @@ declare module 'web3-provider-engine' {
}
export = Web3ProviderEngine;
}
+
+// hdkey declarations
+declare module 'hdkey' {
+ class HDNode {
+ public publicKey: Buffer;
+ public chainCode: Buffer;
+ public constructor();
+ public derive(path: string): HDNode;
+ }
+ export = HDNode;
+}