12018-09-03T00:07:07 *** itaseski has quit IRC
22018-09-03T00:14:30 *** Chris_Stewart_5 has quit IRC
32018-09-03T00:23:56 *** Chris_Stewart_5 has joined #bitcoin-core-dev
42018-09-03T00:30:50 *** drexl has quit IRC
52018-09-03T00:50:27 *** plankers has joined #bitcoin-core-dev
62018-09-03T00:50:44 *** lnostdal has joined #bitcoin-core-dev
72018-09-03T01:22:34 *** fanquake has joined #bitcoin-core-dev
82018-09-03T01:34:41 *** Sinclair6 has joined #bitcoin-core-dev
92018-09-03T01:40:32 *** fanquake has quit IRC
102018-09-03T01:44:04 *** Sinclair6 has quit IRC
112018-09-03T01:49:44 *** plankers has quit IRC
122018-09-03T01:53:20 *** Emcy has quit IRC
132018-09-03T01:53:53 *** Emcy has joined #bitcoin-core-dev
142018-09-03T01:55:20 *** Emcy has quit IRC
152018-09-03T01:55:44 *** Emcy has joined #bitcoin-core-dev
162018-09-03T02:02:24 *** Chris_Stewart_5 has quit IRC
172018-09-03T02:02:57 *** Chris_Stewart_5 has joined #bitcoin-core-dev
182018-09-03T02:13:04 *** Cory has joined #bitcoin-core-dev
192018-09-03T02:13:19 *** linrono has joined #bitcoin-core-dev
202018-09-03T02:17:56 *** Rootsudo has quit IRC
212018-09-03T02:19:37 *** Rootsudo has joined #bitcoin-core-dev
222018-09-03T02:29:24 *** Chris_Stewart_5 has quit IRC
232018-09-03T02:53:49 *** JackH has quit IRC
242018-09-03T03:03:00 *** JackH has joined #bitcoin-core-dev
252018-09-03T03:11:35 *** Victorsueca has quit IRC
262018-09-03T03:12:46 *** Victorsueca has joined #bitcoin-core-dev
272018-09-03T03:24:59 *** Krellan has quit IRC
282018-09-03T03:50:39 *** Cory has quit IRC
292018-09-03T04:00:00 *** Cory has joined #bitcoin-core-dev
302018-09-03T04:20:03 *** justanotheruser has quit IRC
312018-09-03T04:37:18 *** justanotheruser has joined #bitcoin-core-dev
322018-09-03T04:59:33 *** hebasto has joined #bitcoin-core-dev
332018-09-03T05:06:18 *** hebasto has quit IRC
342018-09-03T05:06:38 *** hebasto has joined #bitcoin-core-dev
352018-09-03T05:18:15 <kallewoof> I'm amazed you guys let that go on for as long as it did.
362018-09-03T05:32:38 *** linrono has quit IRC
372018-09-03T05:36:37 *** Linrono has joined #bitcoin-core-dev
382018-09-03T05:44:57 *** dqx has quit IRC
392018-09-03T05:48:13 *** dqx has joined #bitcoin-core-dev
402018-09-03T06:09:21 *** ken2812221_ has joined #bitcoin-core-dev
412018-09-03T06:15:26 *** ken2812221_ has quit IRC
422018-09-03T06:15:48 *** ken2812221_ has joined #bitcoin-core-dev
432018-09-03T06:22:44 <wumpus> i was baffled, as in "it couldn't be *this* bad, right"
442018-09-03T06:23:30 <wumpus> despite all the rumors about toxicity in bitcoin development we have really very little drama compared to other large projects
452018-09-03T06:26:48 *** ken2812221_ has quit IRC
462018-09-03T06:34:01 <luke-jr> heh
472018-09-03T06:34:43 <luke-jr> I wonder if it had gone further, if he would have demanded that payment is required for merging, via copyright stuff
482018-09-03T06:35:24 <luke-jr> (which tbh wouldn't be an entirely terrible idea for open source, but it just isn't acceptable in the current practice)
492018-09-03T06:35:52 <luke-jr> (thinking, if contributors and reviewers could put a $ amount on PRs, and then users paid to get them merged when ready)
502018-09-03T06:36:00 <luke-jr> s/$/BTC/ obviously
512018-09-03T06:37:13 <wumpus> there's the implicit requirement to submit a patch to an open source project, that it is available under the same license
522018-09-03T06:38:06 <wumpus> so in any case, such a thing would have to be coordinated outside of github, beforehand
532018-09-03T06:39:59 <wumpus> e.g. do a closed-source demo of something, and only if you have >X mBTC/$ in donations, release it as open source
542018-09-03T06:40:30 <wumpus> I've seen this done for some music-related software, never for cryptocurrency things though :)
552018-09-03T06:45:20 <wumpus> it works better if a development model revolves around plugins instead of patches
562018-09-03T06:48:36 *** profmac has quit IRC
572018-09-03T06:49:27 *** profmac has joined #bitcoin-core-dev
582018-09-03T06:49:49 <luke-jr> wumpus: I think it wouldn't work for us regardless, simply because of the review bottleneck
592018-09-03T06:49:58 <wumpus> right
602018-09-03T06:50:29 <wumpus> pay for review would be interesting, though also very corruption prone
612018-09-03T06:52:05 <luke-jr> pay-for-review doesn't seem too unreasonable right now even, actually
622018-09-03T06:52:18 <luke-jr> I wouldn't have any complaint with users posting bounties to get PRs they like reviewed sooner
632018-09-03T06:53:26 <wumpus> I'd again prefer this to be coordinated outside github
642018-09-03T06:53:29 *** profmac has quit IRC
652018-09-03T06:55:58 *** profmac has joined #bitcoin-core-dev
662018-09-03T07:01:38 *** Sinclair6 has joined #bitcoin-core-dev
672018-09-03T07:06:33 *** Sinclair6 has quit IRC
682018-09-03T07:33:34 *** profmac has quit IRC
692018-09-03T08:00:35 *** dcousens has joined #bitcoin-core-dev
702018-09-03T08:03:46 *** setpill has joined #bitcoin-core-dev
712018-09-03T08:06:23 *** profmac has joined #bitcoin-core-dev
722018-09-03T08:22:15 *** setpill has quit IRC
732018-09-03T08:24:06 *** setpill has joined #bitcoin-core-dev
742018-09-03T08:33:27 *** Zenton has joined #bitcoin-core-dev
752018-09-03T08:44:13 *** justanotheruser has quit IRC
762018-09-03T09:03:42 <provoostenator> I put a few bounties on Bountysource a while ago, that seems the right way to coordinate these kinds of things, although I've only had limited success.
772018-09-03T09:04:03 <provoostenator> And it doesn't help that they were eaten up by some ICO with too much money.
782018-09-03T09:10:18 *** esotericnonsense has quit IRC
792018-09-03T09:18:25 *** timothy has joined #bitcoin-core-dev
802018-09-03T09:29:42 *** plankers has joined #bitcoin-core-dev
812018-09-03T09:39:30 *** promag has joined #bitcoin-core-dev
822018-09-03T09:45:02 *** Victorsueca has quit IRC
832018-09-03T09:46:10 *** Victorsueca has joined #bitcoin-core-dev
842018-09-03T10:06:25 <wumpus> bountysource supports bitcoin? TIL
852018-09-03T10:25:28 *** grubles_ has joined #bitcoin-core-dev
862018-09-03T10:26:21 *** ghost43 has quit IRC
872018-09-03T10:26:47 *** ghost43 has joined #bitcoin-core-dev
882018-09-03T10:27:39 *** grubles has quit IRC
892018-09-03T10:54:44 *** kallewoof has quit IRC
902018-09-03T11:09:02 *** AaronvanW has joined #bitcoin-core-dev
912018-09-03T11:25:06 *** plankers has quit IRC
922018-09-03T11:28:41 *** hebasto has quit IRC
932018-09-03T11:30:38 *** AaronvanW has quit IRC
942018-09-03T11:31:39 *** AaronvanW has joined #bitcoin-core-dev
952018-09-03T11:37:31 *** hebasto has joined #bitcoin-core-dev
962018-09-03T11:42:04 *** setpill has quit IRC
972018-09-03T11:42:22 *** setpill has joined #bitcoin-core-dev
982018-09-03T11:45:14 *** promag has quit IRC
992018-09-03T11:47:04 *** setpill has quit IRC
1002018-09-03T11:48:43 *** setpill has joined #bitcoin-core-dev
1012018-09-03T11:52:04 *** Guyver2 has joined #bitcoin-core-dev
1022018-09-03T12:03:02 *** d9b4bef9 has quit IRC
1032018-09-03T12:04:10 *** d9b4bef9 has joined #bitcoin-core-dev
1042018-09-03T12:09:17 *** Deacyde has joined #bitcoin-core-dev
1052018-09-03T12:09:21 *** Deacydal has joined #bitcoin-core-dev
1062018-09-03T12:24:58 *** AaronvanW has quit IRC
1072018-09-03T12:38:34 *** Chris_Stewart_5 has joined #bitcoin-core-dev
1082018-09-03T12:39:24 *** miknotauro_ has joined #bitcoin-core-dev
1092018-09-03T12:40:18 *** miknotauro_ has quit IRC
1102018-09-03T12:41:18 *** miknotauro has joined #bitcoin-core-dev
1112018-09-03T12:41:30 *** Linrono has quit IRC
1122018-09-03T12:53:24 *** Linrono has joined #bitcoin-core-dev
1132018-09-03T12:54:55 *** AaronvanW has joined #bitcoin-core-dev
1142018-09-03T13:05:36 *** AaronvanW has quit IRC
1152018-09-03T13:30:14 *** Victorsueca has quit IRC
1162018-09-03T13:31:32 *** Victorsueca has joined #bitcoin-core-dev
1172018-09-03T13:32:05 *** setpill has quit IRC
1182018-09-03T13:34:06 *** setpill has joined #bitcoin-core-dev
1192018-09-03T13:34:25 *** intcat has quit IRC
1202018-09-03T13:34:40 *** belcher_ has joined #bitcoin-core-dev
1212018-09-03T13:35:25 *** Linrono has quit IRC
1222018-09-03T13:37:56 *** intcat has joined #bitcoin-core-dev
1232018-09-03T13:38:44 *** setpill has quit IRC
1242018-09-03T13:50:13 *** Linrono has joined #bitcoin-core-dev
1252018-09-03T14:06:04 *** SopaXorzTaker has joined #bitcoin-core-dev
1262018-09-03T14:13:05 *** rafalcpp has quit IRC
1272018-09-03T14:13:23 *** miknotauro has quit IRC
1282018-09-03T14:13:50 *** rafalcpp has joined #bitcoin-core-dev
1292018-09-03T14:26:50 *** itaseski has joined #bitcoin-core-dev
1302018-09-03T14:28:01 *** promag has joined #bitcoin-core-dev
1312018-09-03T14:42:32 <wumpus> oh, through coinbase...
1322018-09-03T15:16:01 *** d9b4bef9 has quit IRC
1332018-09-03T15:17:08 *** d9b4bef9 has joined #bitcoin-core-dev
1342018-09-03T15:20:52 *** itaseski has quit IRC
1352018-09-03T15:27:21 *** Tennis has joined #bitcoin-core-dev
1362018-09-03T15:49:16 *** maitra has joined #bitcoin-core-dev
1372018-09-03T15:49:42 *** Krellan has joined #bitcoin-core-dev
1382018-09-03T16:08:41 *** promag has quit IRC
1392018-09-03T16:46:40 *** justanotheruser has joined #bitcoin-core-dev
1402018-09-03T17:17:01 *** promag has joined #bitcoin-core-dev
1412018-09-03T17:17:29 *** jhfrontz has joined #bitcoin-core-dev
1422018-09-03T17:21:47 *** Chris_Stewart_5 has quit IRC
1432018-09-03T17:22:20 *** hebasto has quit IRC
1442018-09-03T17:24:20 *** Guest79908 has quit IRC
1452018-09-03T17:24:31 *** GAit has joined #bitcoin-core-dev
1462018-09-03T17:24:33 *** Salve has joined #bitcoin-core-dev
1472018-09-03T17:24:46 <Salve> Why does bitcoin use sha-512?
1482018-09-03T17:24:51 <Salve> o.O
1492018-09-03T17:33:35 *** Salve has quit IRC
1502018-09-03T17:34:13 *** schmidty has quit IRC
1512018-09-03T17:35:42 *** Zenton has quit IRC
1522018-09-03T17:38:57 *** Victorsueca has quit IRC
1532018-09-03T17:39:42 *** Victorsueca has joined #bitcoin-core-dev
1542018-09-03T17:44:08 *** AaronvanW has joined #bitcoin-core-dev
1552018-09-03T17:56:39 *** Krellan has quit IRC
1562018-09-03T17:57:14 *** Krellan has joined #bitcoin-core-dev
1572018-09-03T17:59:30 *** promag has quit IRC
1582018-09-03T18:04:46 <rafalcpp> sipa: seems parts of his code disappeared from git? or is github acting up. following parts of that discussion re 14090 and getting into places like https://github.com/bitcoin/bitcoin/pull/14090/files/9cc9bd700e92486189695ea1cb6edafd714cb33b and github says not found
1592018-09-03T18:06:32 <maitra> bitcoind in regtest mode giving out empty responses to libbitcoinrpc RPC calls. Can someone help mw out here??
1602018-09-03T18:07:17 <maitra> while switching back to testnet works fine. Valid JSONs are returned.
1612018-09-03T18:09:30 *** Linrono has quit IRC
1622018-09-03T18:12:55 *** grubles_ is now known as grubles
1632018-09-03T18:17:30 *** maitra has quit IRC
1642018-09-03T18:28:57 *** maitra has joined #bitcoin-core-dev
1652018-09-03T18:47:51 *** Deacydal has quit IRC
1662018-09-03T18:48:57 *** maitra has quit IRC
1672018-09-03T18:56:56 *** miknotauro has joined #bitcoin-core-dev
1682018-09-03T18:58:57 *** SopaXorzTaker has quit IRC
1692018-09-03T19:05:22 *** Chris_Stewart_5 has joined #bitcoin-core-dev
1702018-09-03T19:05:24 *** miknotauro has quit IRC
1712018-09-03T19:10:24 *** provoostenator has quit IRC
1722018-09-03T19:10:25 *** emzy has quit IRC
1732018-09-03T19:10:25 *** nsh has quit IRC
1742018-09-03T19:10:25 *** fronti has quit IRC
1752018-09-03T19:10:25 *** skeees has quit IRC
1762018-09-03T19:10:25 *** rubensayshi_ has quit IRC
1772018-09-03T19:10:25 *** ChrisMorrisOrg has quit IRC
1782018-09-03T19:10:25 *** profall has quit IRC
1792018-09-03T19:10:25 *** moneyball has quit IRC
1802018-09-03T19:10:26 *** ThisAsYou has quit IRC
1812018-09-03T19:10:26 *** Jackielove4u has quit IRC
1822018-09-03T19:10:26 *** takinbo has quit IRC
1832018-09-03T19:10:26 *** eragmus has quit IRC
1842018-09-03T19:10:26 *** aspect_ has quit IRC
1852018-09-03T19:10:26 *** Guest8683 has quit IRC
1862018-09-03T19:10:33 *** mr_burdell has joined #bitcoin-core-dev
1872018-09-03T19:10:35 *** intcat has quit IRC
1882018-09-03T19:10:35 *** ghost43 has quit IRC
1892018-09-03T19:10:35 *** grubles has quit IRC
1902018-09-03T19:10:35 *** arubi has quit IRC
1912018-09-03T19:10:35 *** sipa has quit IRC
1922018-09-03T19:14:43 *** provoostenator has joined #bitcoin-core-dev
1932018-09-03T19:14:55 *** ghost43 has joined #bitcoin-core-dev
1942018-09-03T19:15:06 *** arubi has joined #bitcoin-core-dev
1952018-09-03T19:20:40 *** nsh has joined #bitcoin-core-dev
1962018-09-03T19:21:05 *** sipa has joined #bitcoin-core-dev
1972018-09-03T19:24:00 <sipa> rafalcpp: if there were force pushes it's possible the code is no longer there
1982018-09-03T19:25:30 <gmaxwell> achow101: Is it really the case that there is no way in the rpc to take the scriptpubkey and amount from scantxoutset and use that to create/populate a PSBT?
1992018-09-03T19:26:39 <achow101> probably not. I haven't looked at scantxoutset yet
2002018-09-03T19:26:51 <gmaxwell> it returns output that looks like listunspent
2012018-09-03T19:27:18 *** intcat has joined #bitcoin-core-dev
2022018-09-03T19:27:20 <sipa> createpsbt ?
2032018-09-03T19:27:24 <gmaxwell> but what I mean is that the createpsbt ignores scriptpubkey and amount, even if you provide them.
2042018-09-03T19:27:41 <sipa> oh, i see
2052018-09-03T19:27:53 <achow101> right now it only updates from the wallet
2062018-09-03T19:28:02 <achow101> there's an open pr to update from the node
2072018-09-03T19:28:10 <achow101> I can add to that updating from user provided data
2082018-09-03T19:28:26 <gmaxwell> yea, at least just make it so create doesn't ignore them would be nice.
2092018-09-03T19:28:48 <sipa> gmaxwell: it would lead to hard to analyse problems if it was a non-witness output being spent
2102018-09-03T19:29:04 <gmaxwell> sipa: how so?
2112018-09-03T19:29:22 <sipa> gmaxwell: for those it needs the full tx being spent, not just amount and sPK
2122018-09-03T19:29:32 <gmaxwell> There is no way to bypass that?
2132018-09-03T19:29:38 <sipa> no
2142018-09-03T19:29:45 <sipa> signers need that information
2152018-09-03T19:29:51 <achow101> gmaxwell: no, otherwise you could be tricked into signing something else
2162018-09-03T19:30:12 <gmaxwell> oh jesus. I am not going to be tricked into signing something else.
2172018-09-03T19:30:50 <gmaxwell> I understand how the bitcoin protocol works. I'm surprised that there isn't any way to bypass checking the inputs.
2182018-09-03T19:31:05 <gmaxwell> esp since the existing raw transaction flow provides no way to do that at all.
2192018-09-03T19:31:16 <sipa> heh, i guess there could be a "yes_i_verified_things_myself" option that skips the check in signing
2202018-09-03T19:31:17 <gmaxwell> (no way for the offline signer to check the fee)
2212018-09-03T19:31:36 <sipa> but you still need an updator first that understands the script being spent from
2222018-09-03T19:31:50 <sipa> so just adding amount/sPK isn't enough
2232018-09-03T19:31:53 <achow101> gmaxwell: sipa and I concluded that it was always safe to produce a segwit signature. so the problem is really with non-segwit
2242018-09-03T19:32:12 <achow101> so if all of your inputs were segwit, you could bypass that check
2252018-09-03T19:33:05 <sipa> my idea was to add an RPC that takes a list of descriptors, and updates using those from the UTXO set
2262018-09-03T19:33:17 <sipa> which would only work for segwit inputs still
2272018-09-03T19:33:33 <gmaxwell> Thats a good idea. You should still update non-segwit. Its up to the signer to decide if it has enough information.
2282018-09-03T19:34:03 <achow101> gmaxwell: we can't because we cant always fetch full transactions
2292018-09-03T19:34:26 <gmaxwell> ...
2302018-09-03T19:34:49 <gmaxwell> If you are updating from the UTXO set you can't provide full transactions. Absolutely. So don't.
2312018-09-03T19:34:51 <sipa> gmaxwell: if you want to sign without checking, you don't need any information at all in the psby
2322018-09-03T19:35:04 <gmaxwell> you need the scriptpubkeys.
2332018-09-03T19:35:31 <sipa> righr
2342018-09-03T19:35:32 <gmaxwell> I was hoping that this would replace an existing raw transaction workflow, but it not only doesn't but it seems not what you and achow are arguing with me.
2352018-09-03T19:35:51 <sipa> but there is no way to add that information in the psbt without providing a full tx
2362018-09-03T19:36:04 <sipa> there is a field for input data to a non-segwit input
2372018-09-03T19:36:10 <sipa> and one for input to a segwit input
2382018-09-03T19:36:20 <sipa> tbe first is a full tx, the second is amount/sPK
2392018-09-03T19:36:44 <gmaxwell> Then PSBT as they are today cannot replace raw transactions.
2402018-09-03T19:37:08 <sipa> you could fill segwit info from utxo data, even for non-segwit inputs
2412018-09-03T19:37:19 <sipa> but i expect various pieces of software will break
2422018-09-03T19:37:39 <gmaxwell> hm. it could correctly distinguish segwit from not based on the spk.
2432018-09-03T19:37:52 <gmaxwell> Thats ugly.
2442018-09-03T19:38:15 <gmaxwell> Better would be to just add a field type for non-sw utxo information, I think.
2452018-09-03T19:38:15 <sipa> no
2462018-09-03T19:38:30 <sipa> with a p2sh embedded segwit you can't tell
2472018-09-03T19:38:43 *** ryanofsky has quit IRC
2482018-09-03T19:38:44 <gmaxwell> oh, indeed.
2492018-09-03T19:39:36 <sipa> i'm really scared about workflows that rely on unverifiable data
2502018-09-03T19:39:48 <gmaxwell> In any case, for what I'm doing for the moment, my choices now are: download 200GB of blockchain OR give up on using PSBT and just use a plain raw tx workflow.
2512018-09-03T19:39:55 <gmaxwell> So obviously I'm going to do the latter.
2522018-09-03T19:40:18 <sipa> i'm sure there is another way
2532018-09-03T19:40:47 <gmaxwell> I suppose I could also go to the system that already has the blockchain and do a 6 hour rescan to add the relevant inputs to the wallet.
2542018-09-03T19:40:48 *** ryanofsky has joined #bitcoin-core-dev
2552018-09-03T19:41:02 <achow101> gmaxwell: I don't quite follow what you are trying to do
2562018-09-03T19:42:15 <gmaxwell> achow101: sweep a key that is on an offline machine. There isn't any risk of 'send the coins to fees' because I know apriori how much coins are there.
2572018-09-03T19:42:28 <sipa> gmaxwell: well, right now, the implementation in bitcoin core isn't sufficient for non-wallet operation
2582018-09-03T19:42:48 <sipa> just having utxo data isn't enough; you also meed an updator which knows the pubkeys used, the redeemscripts, ...
2592018-09-03T19:43:03 <sipa> that could be provided by a descriptor, but isn't implemented yet
2602018-09-03T19:43:41 <gmaxwell> this is easy to do with rawtx + scantxoutset (or rawtx + a block explorer), I was expect PSBT to simpify it at least slightly.
2612018-09-03T19:44:06 <sipa> i'm sure it will, once there are a few extra RPCs
2622018-09-03T19:44:22 <achow101> gmaxwell: it's only easy to do since you verified that the spk and amounts are correct. that's not something we can easily generalize
2632018-09-03T19:44:23 <gmaxwell> I don't see how based on the above conversation?
2642018-09-03T19:44:50 <sipa> gmaxwell: for segwit inputs, at least
2652018-09-03T19:45:04 <sipa> there could also be a signer that lets you bypass safety checks
2662018-09-03T19:45:29 <sipa> but i'm scared about that
2672018-09-03T19:46:00 <gmaxwell> you managed to fail to be scared about that for years with that being the only way to use signrawtransaction. :)
2682018-09-03T19:48:19 *** Zenton has joined #bitcoin-core-dev
2692018-09-03T19:49:49 *** Deacyde has quit IRC
2702018-09-03T19:50:43 <sipa> gmaxwell: fair
2712018-09-03T19:51:01 <sipa> though i think psbt aims at being convenient for slightly less sophisticated users
2722018-09-03T19:52:06 <gmaxwell> well the alternative is implement stuff to take the uxto data and then go fetch pruned blocks from the network to get the inputs.
2732018-09-03T19:52:23 <gmaxwell> so then at least there is a way to easily get the inputs.
2742018-09-03T19:52:35 <achow101> ew
2752018-09-03T19:53:08 <sipa> i don't think there is any harm in letting createpsbt take the amount/sPK and pass them through and create a segwit tx input field with those
2762018-09-03T19:53:33 <sipa> which would be enough for an unsafe signer with knowledge of scripts/pubkeys to sign
2772018-09-03T19:54:03 <gmaxwell> but as I'm saying, because of limitations in PSBT, even with being willing to modify the software to remove a check there is no way for this to replace raw tx in my existing workflow. I wouldn't _mind_ it putting the inputs in there, but there is no efficent way to get them on a pruned node.
2782018-09-03T19:55:08 <sipa> gmaxwell: if the checks are dropped, it would work fine, no?
2792018-09-03T19:55:23 <sipa> you wouldn't expect it to work in other software, though
2802018-09-03T19:56:06 <gmaxwell> Yes, if you could pass along the data and bypass the checks it would work fine. Though a way of fetching the information on a pruned node would be more general (e.g. would work with hardware wallets that don't have a bypass)
2812018-09-03T19:57:03 <andytoshi> i think PSBT should have an extension to support gmaxwell's workflow .. even if the new field names have "unsafe" in them or something
2822018-09-03T19:57:34 <andytoshi> or maybe this is purely about core RPC, and not PSBT itself
2832018-09-03T19:57:49 <gmaxwell> sadly it sounds like PSBT needs an extension if its to accomidate this.
2842018-09-03T19:58:09 <gmaxwell> ('this' being unchecked signing)
2852018-09-03T19:58:15 <andytoshi> right .. it would be good if there was an "amount_unsafe" field or something that you could fill in, and if signers had good reason to trust it, they could use it
2862018-09-03T19:58:29 <sipa> there is no need for amount data
2872018-09-03T19:58:34 <sipa> only scriptPubKey
2882018-09-03T19:58:44 <jonasschnelli> kanzure: is there an issue with the bitcoin-dev mailing? I sent an email 7h, but got nothing back from the list
2892018-09-03T19:58:46 <gmaxwell> they can use the amount_unsafe data to display/check fees.
2902018-09-03T19:58:54 <sipa> gmaxwell: that seems unwise
2912018-09-03T19:59:05 <sipa> the only reason the data is there is so it can be verified
2922018-09-03T19:59:34 <sipa> if you bypass that, and are willing to vouch you yourself did sufficient checking, that doesn't seem needed
2932018-09-03T19:59:50 <andytoshi> sipa: it does if you want a hardware wallet that does fee-checking, and its only means of communication is by PSBT
2942018-09-03T20:00:04 <andytoshi> otherwise you need an extra transport to pass it pre-verified daa
2952018-09-03T20:00:06 <andytoshi> data
2962018-09-03T20:00:06 <sipa> andytoshi: it can't fee check if the amount isn't verified
2972018-09-03T20:00:29 <gmaxwell> sipa: the 'checking' of that part was done at an earlier stage.
2982018-09-03T20:00:31 <andytoshi> it sounds like gmax verified it when he made the transactions, and then didn't keep the transactions around..
2992018-09-03T20:00:36 <sipa> i'm confused
3002018-09-03T20:00:51 *** polydin has joined #bitcoin-core-dev
3012018-09-03T20:01:17 <sipa> if you verified the fee data outside the hsm already, why do you need to tell it the amount?
3022018-09-03T20:01:29 <gmaxwell> sipa: only UI convience wise.
3032018-09-03T20:01:48 <sipa> gmaxwell: again, that seems unwise if it's unverified
3042018-09-03T20:02:09 <sipa> i think the hw signer should just say "unverifiable data, agree to sign anyway?"
3052018-09-03T20:02:45 <andytoshi> and the user can use a pocket calculator for the fee?
3062018-09-03T20:02:58 <gmaxwell> In any case, I don't have a specific need for an unverifyed sign. I just need EITHER an unverfied sign, or a easy way to provide using a pruned node input tx for arbritary scriptpubkey that exist in the utxo set.
3072018-09-03T20:03:19 <sipa> andytoshi: the user must have checked the fee already outside, before passing it to the signer anyway
3082018-09-03T20:03:40 <sipa> andytoshi: so no, not a pocket calculator; just trusting himself which he's already doing in an unverified setting
3092018-09-03T20:03:52 <gmaxwell> e.g. the 'security upgrade' of getting the inputs is fine, so long as it doesn't cost an N hour download the whole blockchain/recan.
3102018-09-03T20:04:17 <sipa> gmaxwell: how do you imagine that to work?
3112018-09-03T20:04:46 <gmaxwell> sipa: the utxo has heights. get the inputs from the blocks, if we have them, otherwise go fetch the blocks.
3122018-09-03T20:05:14 <andytoshi> sipa: i don't feel strongly about this, but it's annoying that the user is being forced to compute the fee herself and verify this when she has a hw signer that is perfectly capable of addition
3132018-09-03T20:05:18 <sipa> ah, i see
3142018-09-03T20:06:01 <gmaxwell> Aside, AFAICT walletprocesspsbt doesn't even show the fees. nor does decodepsbt... so using bitcoin core rpc as your HSM doesn't even provide any security improvement from having the inputs present? or am I missing it?
3152018-09-03T20:06:15 <achow101> gmaxwell: decodepsbt does if all inputs are there
3162018-09-03T20:06:49 <sipa> andytoshi: in this setting the user must have done far more complex things already
3172018-09-03T20:07:03 <gmaxwell> achow101: oh okay, still nothing forces you to call decode on it.
3182018-09-03T20:07:31 <achow101> walletcreatefundedpsbt also gives you the fee.
3192018-09-03T20:08:04 <gmaxwell> achow101: yes, and? that is something that I'm running on the online host...
3202018-09-03T20:08:31 <andytoshi> sipa: ok, fair enough
3212018-09-03T20:09:37 <sipa> in any case, the only way to exploit the file format right now to do this is to create a segwit inout field (even for non-segwit inputs), which also stores the amount
3222018-09-03T20:10:14 <sipa> i just think it's a bad idea to show a user information which is not verifiable - it's fine if they're willing to do verification elsewhere and let them override security checks
3232018-09-03T20:10:45 <gmaxwell> well one could also set the amount to the max value.
3242018-09-03T20:11:17 <gmaxwell> AFAIK there would never need to be a reason to override if we could reliably provide the inputs without absurd burdens, but right now we can't do that.
3252018-09-03T20:11:42 <sipa> but that also means you don't need to shwow it again:; they analysed it and trust it already
3262018-09-03T20:24:03 <gmaxwell> why did signrawtransactionwithkey permute the arguments.
3272018-09-03T20:25:01 *** grubles has joined #bitcoin-core-dev
3282018-09-03T20:27:49 <achow101> permute?
3292018-09-03T20:28:26 <gmaxwell> signrawtransaction took <tx> <inputs> <privkeys> withkey takes <tx> <privkeys> <inputs>
3302018-09-03T20:28:53 <achow101> withkey requires keys, but not inputs
3312018-09-03T20:28:59 <achow101> inputs are optional for with key, but were optional in signraw
3322018-09-03T20:29:15 <achow101> keys were optional in signraw
3332018-09-03T20:29:43 <gmaxwell> just resulted in a couple minutes of confusion dealing with uninformative "JSON value is not a string as expected" after changing a script due to deprication.
3342018-09-03T20:29:48 <gmaxwell> Okay, makes sense I guess.
3352018-09-03T20:35:34 *** owowo has quit IRC
3362018-09-03T20:36:49 *** ryanofsky has quit IRC
3372018-09-03T20:40:13 *** owowo has joined #bitcoin-core-dev
3382018-09-03T20:49:34 *** unholymachine has quit IRC
3392018-09-03T20:53:31 *** bosma has joined #bitcoin-core-dev
3402018-09-03T20:55:55 *** owowo has quit IRC
3412018-09-03T21:02:33 *** polydin has quit IRC
3422018-09-03T21:03:50 *** promag has joined #bitcoin-core-dev
3432018-09-03T21:15:01 *** Emzy has joined #bitcoin-core-dev
3442018-09-03T21:18:36 *** owowo has joined #bitcoin-core-dev
3452018-09-03T21:20:42 *** drexl has joined #bitcoin-core-dev
3462018-09-03T21:33:48 *** timothy has quit IRC
3472018-09-03T21:36:00 *** miknotauro has joined #bitcoin-core-dev
3482018-09-03T21:37:27 *** Chris_Stewart_5 has quit IRC
3492018-09-03T21:38:06 *** Guyver2 has quit IRC
3502018-09-03T21:44:22 *** CubicEarth has quit IRC
3512018-09-03T21:46:45 *** CubicEarth has joined #bitcoin-core-dev
3522018-09-03T21:47:23 *** profmac has quit IRC
3532018-09-03T21:50:34 *** unholymachine has joined #bitcoin-core-dev
3542018-09-03T21:52:26 *** plankers has joined #bitcoin-core-dev
3552018-09-03T22:07:13 *** profmac has joined #bitcoin-core-dev
3562018-09-03T22:16:08 *** Chris_Stewart_5 has joined #bitcoin-core-dev
3572018-09-03T22:21:07 *** Chris_Stewart_5 has quit IRC
3582018-09-03T22:22:19 *** belcher_ has quit IRC
3592018-09-03T22:42:43 *** promag has quit IRC
3602018-09-03T22:43:19 *** profmac has quit IRC
3612018-09-03T22:50:08 *** profmac has joined #bitcoin-core-dev
3622018-09-03T22:55:57 *** profmac has quit IRC
3632018-09-03T23:00:03 *** profmac has joined #bitcoin-core-dev
3642018-09-03T23:16:43 *** spinza has quit IRC
3652018-09-03T23:23:01 *** spinza has joined #bitcoin-core-dev
3662018-09-03T23:31:34 <kanzure> sipa: apologies. mailing list is in moderation mode since someone figured out how to spoof emails from bitcoin developers. emails were delayed due to my travel.
3672018-09-03T23:35:51 *** promag has joined #bitcoin-core-dev
3682018-09-03T23:49:07 *** Sinclair6 has joined #bitcoin-core-dev
3692018-09-03T23:53:48 *** Sinclair6 has quit IRC
3702018-09-03T23:56:20 *** lnostdal has quit IRC
3712018-09-03T23:56:53 *** Sinclair6 has joined #bitcoin-core-dev
3722018-09-03T23:57:38 *** lnostdal has joined #bitcoin-core-dev
3732018-09-03T23:58:35 *** drexl has quit IRC