aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/globals.d.ts
blob: 9b81e15bdf00418808f9736d939a5096d1d281fe (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
declare type ETHPublicKey = string;
declare type ETHAddressHex = string;
declare type HexString = string;
declare type ETHAddressBuff = Buffer;

declare module 'ethereumjs-util' {
    const toBuffer: (data: HexString) => Buffer;
    const hashPersonalMessage: (msg: Buffer) => Buffer;
    const bufferToHex: (buff: Buffer) => HexString;
    const ecrecover: (msgHashBuff: Buffer, v: number, r: Buffer, s: Buffer) => ETHPublicKey;
    const pubToAddress: (pubKey: ETHPublicKey) => ETHAddressBuff;
}