1 |
|
2 |
|
3 |
|
4 | import * as bip32 from 'bip32';
|
5 | import * as stellar from 'stellar-sdk';
|
6 | import { BitGo } from '../../bitgo';
|
7 | import { BaseCoin } from '../baseCoin';
|
8 | import * as config from '../../config';
|
9 | interface ValidateKeyOptions {
|
10 | key: string;
|
11 | source: string;
|
12 | passphrase?: string;
|
13 | isUnsignedSweep: boolean;
|
14 | isKrsRecovery: boolean;
|
15 | }
|
16 | export interface InitiateRecoveryOptions {
|
17 | userKey: string;
|
18 | backupKey: string;
|
19 | bitgoKey?: string;
|
20 | recoveryDestination: string;
|
21 | walletPassphrase?: string;
|
22 | }
|
23 | declare type GetKrsProviderOptions = {
|
24 | checkCoinFamilySupport?: boolean;
|
25 | };
|
26 |
|
27 |
|
28 |
|
29 |
|
30 |
|
31 |
|
32 | export declare function getKrsProvider(coin: BaseCoin, krsProviderName: string | undefined, { checkCoinFamilySupport }?: GetKrsProviderOptions): config.KrsProvider;
|
33 |
|
34 |
|
35 |
|
36 | export declare function checkKrsProvider(coin: BaseCoin, krsProviderName: string | undefined, options?: GetKrsProviderOptions): void;
|
37 | export declare function getIsKrsRecovery({ backupKey, userKey }: {
|
38 | backupKey: string;
|
39 | userKey: string;
|
40 | }): boolean;
|
41 | export declare function getIsUnsignedSweep({ backupKey, userKey }: {
|
42 | backupKey: string;
|
43 | userKey: string;
|
44 | }): boolean;
|
45 | export declare function validateKey(bitgo: BitGo, { key, source, passphrase, isUnsignedSweep, isKrsRecovery }: ValidateKeyOptions): bip32.BIP32Interface;
|
46 | export declare function getBip32Keys(bitgo: BitGo, params: InitiateRecoveryOptions, { requireBitGoXpub }: {
|
47 | requireBitGoXpub: boolean;
|
48 | }): bip32.BIP32Interface[];
|
49 | export declare function getStellarKeys(bitgo: BitGo, params: InitiateRecoveryOptions): stellar.Keypair[];
|
50 | export {};
|
51 |
|
\ | No newline at end of file |