aboutsummaryrefslogtreecommitdiffstats
path: root/src/ts/globals.d.ts
blob: 1e502b061f2e319bdbdcd701a92a2f9c2e2d4e4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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) => string;
    const pubToAddress: (pubKey: string) => ETHAddressBuff;
    const isValidAddress: (address: string) => boolean;
}