PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-core/dist/src/descriptor/psbt
Просмотр файла: findDescriptors.d.ts
import { PsbtInput, PsbtOutput } from 'bip174/src/lib/interfaces';
import { Descriptor } from '@bitgo/wasm-miniscript';
import { DescriptorMap } from '../DescriptorMap';
type DescriptorWithoutIndex = {
descriptor: Descriptor;
index: undefined;
};
type DescriptorWithIndex = {
descriptor: Descriptor;
index: number;
};
/**
* @param input
* @param descriptorMap
* @returns DescriptorWithIndex for the input if found, undefined otherwise
*/
export declare function findDescriptorForInput(input: PsbtInput, descriptorMap: DescriptorMap): DescriptorWithIndex | DescriptorWithoutIndex | undefined;
/**
* @param script - the output script
* @param output - the PSBT output
* @param descriptorMap
* @returns DescriptorWithIndex for the output if found, undefined otherwise
*/
export declare function findDescriptorForOutput(script: Buffer, output: PsbtOutput, descriptorMap: DescriptorMap): DescriptorWithIndex | DescriptorWithoutIndex | undefined;
export {};
//# sourceMappingURL=findDescriptors.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!