UNPKG

@bitgo/utxo-bin

Version:

Command-line utility for BitGo UTXO transactions

43 lines 2.37 kB
import * as utxolib from '@bitgo/utxo-lib'; import { Parser, ParserNode } from './Parser'; import { ParserTx } from './ParserTx'; import { HollowSegwitSpend } from './hollowSegwitSpend'; import { ChainInfo } from './TxParser'; type ParsedSignatureScript = utxolib.bitgo.ParsedSignatureScriptP2ms | utxolib.bitgo.ParsedSignatureScriptP2shP2pk | utxolib.bitgo.ParsedSignatureScriptTaproot | utxolib.bitgo.ParsedPsbtP2ms | utxolib.bitgo.ParsedPsbtP2shP2pk | utxolib.bitgo.ParsedPsbtTaproot | HollowSegwitSpend; export declare class InputParser extends Parser { private txid; private tx; private inputIndex; private chainInfo; private params; private input; constructor(txid: string, tx: ParserTx, inputIndex: number, chainInfo: ChainInfo, params: { parseOutputScript: boolean; parseScriptAsm: boolean; parseScriptData: boolean; parseSignatureData: { script: boolean; ecdsa: boolean; schnorr: boolean; }; parseError?: 'throw' | 'continue'; }); parseScriptAsm(type: string, part: Buffer, i: number, n: number): string | undefined; parseScriptParts(type: string, parts: Array<Buffer | number>): ParserNode[]; parseInputScript(buffer: Buffer | undefined): ParserNode; parseWitness(script: Buffer[] | undefined): ParserNode; parsePubkeys(parsed: ParsedSignatureScript): ParserNode; parseSignatureBuffer(type: utxolib.bitgo.outputScripts.ScriptType2Of3 | utxolib.bitgo.ParsedScriptType2Of3 | utxolib.bitgo.outputScripts.ScriptTypeP2shP2pk, buf: Buffer | 0, signerIndex: number | undefined): ParserNode[]; parseSignaturesWithSigners(parsed: { scriptType: utxolib.bitgo.outputScripts.ScriptType2Of3 | utxolib.bitgo.outputScripts.ScriptTypeP2shP2pk | utxolib.bitgo.ParsedScriptType2Of3; signatures: (Buffer | 0)[]; }, signedByLabels: string[] | undefined, signerIndex: number[] | undefined): ParserNode[]; parseSignatures(parsed: ParsedSignatureScript): ParserNode; parseSigScriptWithType(parsed: ParsedSignatureScript): ParserNode; parseSigScript(): ParserNode; parsePrevOut(prevOutput: utxolib.TxOutput<bigint> | utxolib.bitgo.PsbtInput): ParserNode[]; parsePsbtInput(input: utxolib.bitgo.PsbtInput): ParserNode[]; parseInput(): ParserNode; } export {}; //# sourceMappingURL=InputParser.d.ts.map