PHP WebShell
Текущая директория: /opt/BitGoJS/modules/utxo-core/dist/src/descriptor
Просмотр файла: derive.d.ts
import { Descriptor } from '@bitgo/wasm-miniscript';
/**
* Get a descriptor at a specific derivation index.
* For wildcard descriptors (containing '*'), the index is required and used for derivation.
* For definite descriptors (not containing '*'), no index should be provided.
* @param descriptor - The descriptor to derive from
* @param index - The derivation index for wildcard descriptors
* @returns A new descriptor at the specified index for wildcard descriptors, or the original descriptor for definite ones
* @throws {Error} If index is undefined for a wildcard descriptor or if index is provided for a definite descriptor
*/
export declare function getDescriptorAtIndex(descriptor: Descriptor, index: number | undefined): Descriptor;
export declare function getDescriptorAtIndexCheckScript(descriptor: Descriptor, index: number | undefined, script: Buffer, descriptorString?: string): Descriptor;
//# sourceMappingURL=derive.d.ts.mapВыполнить команду
Для локальной разработки. Не используйте в интернете!