[Wallet] FundRawTransaction accepts preset non-wallet inputs #10068

pull NicolasDorier wants to merge 6 commits into bitcoin:master from NicolasDorier:nonwalletinputs changing 7 files +179 −77
  1. NicolasDorier commented at 4:35 AM on March 24, 2017: contributor

    This PR makes it possible to call FundRawTransaction with pre filled inputs not belonging to the wallet. This is very useful for AnyOneCanPay scenario, where one of a third party only cover part of a transaction.

    The necessary information to complete the transaction is taken from of the mempool and coinview.

    A follow up PR might allow the client of this API to pass previous TxOuts corresponding to the inputs. This would be useful in scenario involving 2nd layer protocols, where the the inputs's of the transaction have not broadcasted yet.

    A typical example would involves Alice and Bob wanting to fund 0.5 each to the payment channel. Alice would give her input, and Bob would be able to complete the missing amount via FundRawTransaction.

    I personally need this PR for an atomic swap of colored coins. The user wants to exchange Bitcoin against some of his colored coins, to do so, he put his colored coin input into the transaction + the bitcoin outputs, and pass it to our service. Our service would then check that the rate is correct, and cover the bitcoin outputs with his own inputs by using a call to FundRawTransaction.

  2. NicolasDorier force-pushed on Mar 24, 2017
  3. fanquake added the label Wallet on Mar 24, 2017
  4. NicolasDorier force-pushed on Mar 24, 2017
  5. NicolasDorier force-pushed on Mar 24, 2017
  6. NicolasDorier renamed this:
    [WIP] FundRawTransaction accepts preset non-wallet inputs
    [Wallet] FundRawTransaction accepts preset non-wallet inputs
    on Mar 24, 2017
  7. NicolasDorier force-pushed on Mar 25, 2017
  8. NicolasDorier force-pushed on Apr 5, 2017
  9. Make CCoinControl parameter of FundTransaction 7a30bbb92b
  10. Replace std:pair<CWalletTx,uint> by CInputCoin 1e959b125f
  11. FundRawTransaction check into mempool and UTXO for the preset inputs 22a44e68c4
  12. Remove useless remaining make_pair a3c8c70777
  13. Do not DummySign input which are not solvable 8074e88319
  14. Testing fundrawtransaction with TxOut in mempool or coinview 267b89e8cf
  15. NicolasDorier force-pushed on Apr 5, 2017
  16. NicolasDorier commented at 5:44 AM on April 5, 2017: contributor

    rebased

  17. NicolasDorier closed this on Apr 13, 2017

  18. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me