import * as openpgp from 'openpgp'; import { SerializedKeyPair } from 'openpgp'; import { Keychain } from '../../../keychain'; import { IBaseCoin, KeychainsTriplet } from '../../../baseCoin'; import baseTSSUtils from '../baseTSSUtils'; import { KeyShare } from './types'; import { TSSParams, TxRequest } from '../baseTypes'; import { BitGoBase } from '../../../bitgoBase'; import { IWallet } from '../../../wallet'; /** @inheritdoc */ export declare class EcdsaUtils extends baseTSSUtils { private bitgoPublicGpgKey; constructor(bitgo: BitGoBase, baseCoin: IBaseCoin, wallet?: IWallet); private setBitgoGpgPubKey; getBitgoPublicGpgKey(): Promise; /** @inheritdoc */ createKeychains(params: { passphrase: string; enterprise?: string | undefined; originalPasscodeEncryptionCode?: string | undefined; }): Promise; createUserKeychain(userGpgKey: SerializedKeyPair, userKeyShare: KeyShare, backupKeyShare: KeyShare, bitgoKeychain: Keychain, passphrase: string, originalPasscodeEncryptionCode: string): Promise; createBackupKeychain(userGpgKey: SerializedKeyPair, userKeyShare: KeyShare, backupKeyShare: KeyShare, bitgoKeychain: Keychain, passphrase: string): Promise; /** @inheritdoc */ createBitgoKeychain(userGpgKey: SerializedKeyPair, userKeyShare: KeyShare, backupKeyShare: KeyShare, enterprise?: string): Promise; /** @inheritdoc */ createParticipantKeychain(userGpgKey: openpgp.SerializedKeyPair, recipientIndex: number, userKeyShare: KeyShare, backupKeyShare: KeyShare, bitgoKeychain: Keychain, passphrase: string, originalPasscodeEncryptionCode?: string): Promise; /** * Gets signing key, txRequestResolved and txRequestId * @param {string | TxRequest} params.txRequest - transaction request object or id * @param {string} params.prv - decrypted private key * @param { string} params.reqId - request id * @returns {Promise} */ private signRequestBase; /** * Signs the transaction associated to the transaction request. * @param {string | TxRequest} params.txRequest - transaction request object or id * @param {string} params.prv - decrypted private key * @param {string} params.reqId - request id * @returns {Promise} fully signed TxRequest object */ signTxRequest(params: TSSParams): Promise; /** * Signs the message associated to the transaction request. * @param {string | TxRequest} params.txRequest - transaction request object or id * @param {string} params.prv - decrypted private key * @param {string} params.reqId - request id * @returns {Promise} fully signed TxRequest object */ signTxRequestForMessage(params: TSSParams): Promise; } //# sourceMappingURL=ecdsa.d.ts.map