PHP WebShell

Текущая директория: /opt/BitGoJS/modules/utxo-bin/dist/src

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

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

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


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