PHP WebShell

Текущая директория: /opt/BitGoJS/node_modules/@bitgo/wasm-miniscript/dist/browser/js

Просмотр файла: index.d.ts

export type DescriptorPkType = "derivable" | "definite" | "string";
export type ScriptContext = "tap" | "segwitv0" | "legacy";
export type SignPsbtResult = {
    [inputIndex: number]: [pubkey: string][];
};
declare module "./wasm/wasm_miniscript" {
    interface WrapDescriptor {
        /** These are not the same types of nodes as in the ast module */
        node(): unknown;
    }
    namespace WrapDescriptor {
        function fromString(descriptor: string, pkType: DescriptorPkType): WrapDescriptor;
        function fromStringDetectType(descriptor: string): WrapDescriptor;
    }
    interface WrapMiniscript {
        /** These are not the same types of nodes as in the ast module */
        node(): unknown;
    }
    namespace WrapMiniscript {
        function fromString(miniscript: string, ctx: ScriptContext): WrapMiniscript;
        function fromBitcoinScript(script: Uint8Array, ctx: ScriptContext): WrapMiniscript;
    }
    interface WrapPsbt {
        signWithXprv(this: WrapPsbt, xprv: string): SignPsbtResult;
        signWithPrv(this: WrapPsbt, prv: Buffer): SignPsbtResult;
    }
}
export { WrapDescriptor as Descriptor } from "./wasm/wasm_miniscript";
export { WrapMiniscript as Miniscript } from "./wasm/wasm_miniscript";
export { WrapPsbt as Psbt } from "./wasm/wasm_miniscript";
export * as ast from "./ast";

Выполнить команду


Для локальной разработки. Не используйте в интернете!