blob: 1c3cbf47d1e450b879d17836cce87b3f52a0c198 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
declare type PubKey = string;
declare type ETHAddressHex = string;
declare type ETHAddressBuff = Buffer;
declare module 'ethereumjs-util' {
const toBuffer: (data: string) => Buffer;
const hashPersonalMessage: (msg: Buffer) => Buffer;
const bufferToHex: (buff: Buffer) => string;
const ecrecover: (msgHashBuff: Buffer, v: number, r: Buffer, s: Buffer) => PubKey;
const pubToAddress: (pubKey: PubKey) => ETHAddressBuff;
}
|