mirror of
https://github.com/bisq-network/bisq.git
synced 2025-02-24 23:18:17 +01:00
Factor out a new RpcService.extractPubKeyAsHex method, to take public keys from the inputs of the raw transactions returned by the RPC client, when building TxInput objects to incorporate into the DAO state. Enhance the method to additionally support segwit (P2WPKH & P2SH-P2WPKH) inputs (but only the first input for backwards compatibility - see code comment). Also fix a bug when handling non-SIGHASH_ALL input signatures. This will allow segwit BSQ to be used in proof-of-burn and issuance txs, which need a public key associated with the tx to establish ownership of it, when signing messages with a proof-of-burn or staking merit awarded from a compensation issuance, respectively. Also add unit tests for the factored-out method and add a missing RawTx toString() method, to aid debugging the TxInput fields within the processed block returned by RpcService. |
||
---|---|---|
.. | ||
.tx | ||
src | ||
update_translations.sh |