1 |
|
2 |
|
3 |
|
4 | import { ec } from 'elliptic';
|
5 | import { SignatureProvider, SignatureProviderArgs } from './eosjs-api-interfaces';
|
6 | import { PushTransactionArgs } from './eosjs-rpc-interfaces';
|
7 | import { PrivateKey, PublicKey, Signature } from './eosjs-key-conversions';
|
8 |
|
9 | declare const digestFromSerializedData: (chainId: string, serializedTransaction: Uint8Array, serializedContextFreeData?: Uint8Array, e?: ec) => string;
|
10 |
|
11 | declare class JsSignatureProvider implements SignatureProvider {
|
12 |
|
13 | keys: Map<string, ec.KeyPair>;
|
14 |
|
15 | availableKeys: string[];
|
16 |
|
17 | constructor(privateKeys: string[]);
|
18 | /** Public keys associated with the private keys that the `SignatureProvider` holds */
|
19 | getAvailableKeys(): Promise<string[]>;
|
20 | /** Sign a transaction */
|
21 | sign({ chainId, requiredKeys, serializedTransaction, serializedContextFreeData }: SignatureProviderArgs): Promise<PushTransactionArgs>;
|
22 | }
|
23 | export { PrivateKey, PublicKey, Signature, digestFromSerializedData, JsSignatureProvider, };
|