PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-lib/dist/src/bitgo/wallet/psbt
Просмотр файла: RootNodes.d.ts
/**
* Contains helper methods for getting and sorting root nodes from a PSBT.
*/
import { UtxoPsbt } from '../../UtxoPsbt';
import { Triple } from '../../types';
import { BIP32Interface } from 'bip32';
/**
* Error thrown when no multi-sig input is found in a PSBT.
* */
export declare class ErrorNoMultiSigInputFound extends Error {
constructor(message: string);
}
/**
* Retrieves unsorted root BIP32Interface nodes from a PSBT if available.
* @param psbt - The PSBT from which to extract the global Xpubs.
* @returns An array of BIP32Interface objects or undefined if not available.
*/
export declare function getUnsortedRootNodes(psbt: UtxoPsbt): Triple<BIP32Interface> | undefined;
/**
* Sorts given root nodes based on the script compatibility with the PSBT's multi-sig inputs.
* @param psbt - The PSBT containing multi-sig inputs.
* @param rootNodes - Array of root nodes to sort.
* @returns An array of BIP32Interface objects in the order that matches the multi-sig script.
*/
export declare function sortRootNodes(psbt: UtxoPsbt, rootNodes: Triple<BIP32Interface>): Triple<BIP32Interface>;
/**
* Retrieves sorted root nodes from a PSBT, ensuring they are ordered according to script compatibility.
* @param psbt - The PSBT to extract and sort root nodes from.
* @returns An array of sorted BIP32Interface root nodes.
*/
export declare function getSortedRootNodes(psbt: UtxoPsbt): Triple<BIP32Interface>;
//# sourceMappingURL=RootNodes.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!