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

declare interface Schema {
    id: string;
}

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