UNPKG

@bitgo/utxo-bin

Version:

Command-line utility for BitGo UTXO transactions

26 lines 951 B
import * as utxolib from '@bitgo/utxo-lib'; /** * Users can mistakenly create wrapped segwit outputs on chains that do not support it (bitcoincash, bitcoinSV). * * These funds can be claimed by miners that learn the hash preimage, typically by observing a spend on the bitcoin * chain. * * Since the transaction does not have a full inner script, let's call them "hollow". * * See https://bitcoin.stackexchange.com/a/115850/137601 for more details. */ export type HollowSegwitSpend = /** Wrapped Segwit Pay-To-Witness-Script-Hash */ { scriptType: 'p2shP2wshHollow'; } /** Wrapped Segwit Pay-To-Pubkey-Hash */ | { scriptType: 'p2shP2wpkhHollow'; }; /** * @return HollowSegwitSpend if spend is a */ export declare function parseHollowSegwitSpend(input: utxolib.TxInput, network: utxolib.Network): HollowSegwitSpend | undefined; export declare function getHollowSpendMessage(): string; //# sourceMappingURL=hollowSegwitSpend.d.ts.map