diff options
author | Leonid <logvinov.leon@gmail.com> | 2017-12-18 23:09:22 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-18 23:09:22 +0800 |
commit | bb6d594ec77390ab112b557e7843974ec205bcb8 (patch) | |
tree | 8d8887a6cd259b589579646216cce8986c02f48b /packages/subproviders/src/globals.d.ts | |
parent | fe8f2d87c79cb25a7879c2e737dbdd64b7c40f60 (diff) | |
parent | a57dda2c2a47671b0766c7c28d24560e3000ca66 (diff) | |
download | dexon-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.ts | 13 |
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; +} |