1 | import Web3 from 'web3';
|
2 | export declare function soliditySha3(...values: any[]): string;
|
3 | /**
|
4 | * Signs message using a Web3 account.
|
5 | */
|
6 | export declare class Web3Signer {
|
7 | private _web3;
|
8 | private _address;
|
9 | /**
|
10 | * @param web3 Web3 instance to use for signing.
|
11 | * @param accountAddress Address of web3 account to sign with.
|
12 | */
|
13 | constructor(web3: Web3, accountAddress: string);
|
14 | /**
|
15 | * Signs a message.
|
16 | * @param msg Message to sign.
|
17 | * @returns Promise that will be resolved with the signature bytes.
|
18 | */
|
19 | signAsync(msg: string): Promise<Uint8Array>;
|
20 | }
|