46 lines
902 B
TypeScript
46 lines
902 B
TypeScript
|
declare module 'ledgerco' {
|
||
|
// TODO: fill the library typings out
|
||
|
export const comm_u2f: any;
|
||
|
export class eth {
|
||
|
constructor(transport: any);
|
||
|
getAddress_async(
|
||
|
path: string,
|
||
|
boolDisplay?: boolean,
|
||
|
boolChaincode?: boolean
|
||
|
): Promise<{
|
||
|
publicKey: string;
|
||
|
address: string;
|
||
|
chainCode: string;
|
||
|
}>;
|
||
|
|
||
|
signTransaction_async(
|
||
|
path: string,
|
||
|
rawTxHex: string
|
||
|
): Promise<{
|
||
|
s: string;
|
||
|
v: string;
|
||
|
r: string;
|
||
|
}>;
|
||
|
|
||
|
getAppConfiguration_async(): Promise<{
|
||
|
arbitraryDataEnabled: number;
|
||
|
version: string;
|
||
|
}>;
|
||
|
|
||
|
signPersonalMessage_async(
|
||
|
path: string,
|
||
|
messageHex: string
|
||
|
): Promise<{
|
||
|
v: number;
|
||
|
s: string;
|
||
|
r: string;
|
||
|
}>;
|
||
|
|
||
|
signPersonalMessage_async(
|
||
|
path: string,
|
||
|
messageHex: string,
|
||
|
cb: (signed: any, error: any) => any
|
||
|
): void;
|
||
|
}
|
||
|
}
|