r/btc • • Jul 29 '19

Double-spend proofs, SPV fraud proofs, and Cashfusion improvements all on the same day! πŸ… BCH PLS! πŸ…

https://www.reddit.com/r/btc/comments/cj92ii/double_spend_proof_just_got_real_a_first

TLDR: merchants will be able to prove that a double spending attempt took place, creating a strong disincentive to attempting double spend fraud, and making zero conf payments even more secure

https://www.reddit.com/r/btc/comments/cjawv5/fraud_proofs_are_solved

TLDR: Ever heard the argument, "everyone should run a full node, or else you're trusting miners?" It's always been mostly BS, but now it's dead.

https://www.reddit.com/r/btc/comments/cj5nkz/cashfusion_just_got_a_whole_lot_better

TLDR: BCH just improved privacy and fungibility. Again.

BCH PLS

We got some great dev happening guys! Great job Team BCH!

164 Upvotes

36 comments sorted by

13

u/jonald_fyookball Electron Cash Wallet Developer Jul 29 '19

The SPV proofs require at least a soft fork. Wondering if its worth it to change the protocol for.

21

u/jessquit Jul 29 '19

it's worth it to change the Bitcoin: a Peer-to-peer Electronic Cash System protocol for, because that document specifies the future development of such proofs. so the true Bitcoin should probably employ them. ;~]

16

u/cryptos4pz Jul 29 '19

The SPV proofs require at least a soft fork. Wondering if its worth it to change the protocol for.

The nice thing is our community isn't against forks. We embrace them as a necessary way to fulfill our roadmap. I'm still digesting the SPV proofs, but I think J Toomim is right, that they only require a soft-fork. However, as the idea is fully fleshed out, maybe something involving a hard-fork would work even better. Either way, we're all about making improvements. One of the things it seems the fraud proofs addresses is the UTXO set growth problem. So it seems like a good idea to plan to implement some version of it in one of our hard-forks. It may be a bit late for the one coming in November although it seems straightforward enough to implement.

5

u/jonald_fyookball Electron Cash Wallet Developer Jul 30 '19

The nice thing is our community isn't against forks

Agree. It's just that the absence of fraud proofs was such a weak argument to begin with, that is it really of any consequence, or of anything worth doing about? I'm not saying yes or no, just raising the question.

4

u/[deleted] Jul 30 '19

Just because it was a weak argument in the scope of the blocksize debate doesn't make it an unimportant feature for a scaled blockchain. DSPs are super-helpful for UTXO-critical services, because they allow a transaction to be known to be a double-spend without completely having both transactions. DSP + random node polling can be used to quantify with some precision the risk of double-spend-induced service disruption.

The primary focus here is to further increase the security of unconfirmed transactions. This is a great way to do it without altering the process of transaction validation. In their most rudimentary form, DSPs could be used to alert a merchant to potential fraud within seconds of the attempt. Thinking further ahead, these signals could be used to automatically determine (within a given risk margin) whether an unconfirmed transaction is safe for commerce.

1

u/ssvb1 Jul 30 '19

DSPs are super-helpful for UTXO-critical services, because they allow a transaction to be known to be a double-spend without completely having both transactions.

That's what /u/ThomasZander claims, but it's not necessarily true. Almost a year ago I have already shown how to reconstruct one of the transactions using the data from the other transaction and the double spend proof data: https://old.reddit.com/r/btc/comments/95rb6w/double_spend_proofs_bypass/ (it does not require a miner and a double spender to know each other or communicate in any way other than the double spend proofs relay mechanism).

You can follow this link and check the old discussions. But at the end of the day only the code matters. Thomas announced that "Double spend proof just got real, a first implementation of proof-of-concept now exists" but I don't see any code in his pull request to serialize/deserialize the double spend proof message in a format that can be sent over the wire. After we get the double spend proof message format finalized and working in some real code, the ball will be on my side and I will be more than happy to provide my updated code for bypassing this thing.

3

u/[deleted] Jul 30 '19 edited Jul 30 '19

The fact that a whole transaction can be reconstructed doesn't make a slim proof less useful. The question was "is it really of consequence" was raised, and I answered - with a benefit that is not at all impacted by this capability. The ability to have a proof without the whole transaction is itself useful. Perhaps that reconstruction can be one of those uses, as well, but the ability to do so does not harm anything to my understanding.

edit Went further down that rabbit hole and I really don't see this as a problem. This seems to be a particularly marginal corner case to begin with and while it isn't without merit, it doesn't present any significant roadblocks to use cases. Imaginary Username gets it:

There is no protection against an intentionally colluding miner in any proposals that do not include consensus change, unless they introduce another incentive on top of the block reward/tx-fee.

2

u/[deleted] Jul 30 '19

Agreed with your conclusion.

2

u/[deleted] Jul 30 '19

Mmm, thank you! I'm a relative nobody in the crypto space, but I'd like to think I do my part for Bitcoin Cash. The bridge between 'technically useful' and 'generally useful' is a large one.

1

u/[deleted] Jul 30 '19

The fact that a whole transaction can be reconstructed doesn’t make a slim proof less useful.

It kinda nullify it, isn’t it?

What’s the benefit compared to simply send the double spending transactions as a proof?

3

u/[deleted] Jul 30 '19 edited Jul 30 '19

A small DSP can substitute for a large transaction. One DSP is all that is required, so further DSPs do not have to be crafted or broadcast when a second double-spend against the same UTXO is received. Nodes can use DSPs to be aware of which of their peers have a shared transaction and which of them have double-spends of it without broadcasting and validating those double-spends. SPV wallets can be aware of double-spends without actively tracking the source coin(s) or requiring a node to broadcast the double-spend (that it doesn't have because it has the transaction you have instead).

2

u/cryptos4pz Jul 30 '19

is it really of any consequence, or of anything worth doing about? I'm not saying yes or no, just raising the question.

I'm not sure. I hadn't really considered fraud proofs before. There is so much going on it's hard to keep track of and do justice to every technical point immediately. That's how it always is, and why technology improves over time, but never all at once.

I echoed this sentiment in a reply to jtoomim about idea novelty.

Maybe it's not just fraud proofs. Maybe it's fraud proofs with CTOR, and maybe something else that enables some really worthwhile feature. We're getting better at solving many open challenges in Bitcoin, and we welcome all useful tools made readily available. UTXO set growth remains a scaling concern AFAIK. It's mentioned in that tweet thread fraud proofs may help with that as John Adler seems to think aloud. I agree. I can see how they may be useful, but I need more time to consider the matter.

We'll know more for certain with time. That's how it always goes. :)

1

u/1solate Jul 29 '19

Y'all need to get right with maintenance forks.

29

u/LovelyDay Jul 29 '19

Ever heard the argument, "everyone should run a full node, or else you're trusting miners?"

Our resident troll ClintRichards just posted that old chestnut again.

Can't wait to see the even stronger SPV that will be made possible on BCH wallets by this.

Today is indeed a day with great news all around for BCH development.

0

u/[deleted] Jul 29 '19

[deleted]

6

u/MarchewkaCzerwona Jul 29 '19

Oh dear, I loled big on that 😊. Thanks.

35

u/libertarian0x0 Jul 29 '19

BCH is a scam because has no development. We in BTC develop lots of lambomoon memes.

18

u/500239 Jul 29 '19

We copied Schnorr from BTC into BCH.. despite BTC not implementing it. You can always laugh at the Core logic.

2

u/[deleted] Jul 30 '19

We copied Schnorr from BTC into BCh

Schnorr is not owned by Bitcoin Core?

The way schnorr is implemented on BCH is completely different.. I am not sure what you are trying to say here..

3

u/500239 Jul 30 '19

I was being sarcastic. BCH didn't copy Schnorr from Bitcoin because Bitcoin doesn't have schnorr. The Core talking point is BCH only backports Bitcoin features... lol including schnorr.

Bitcoin Core sat on Schnorr for years and didn't do anything with it, and still hasn't.

1

u/[deleted] Jul 31 '19

Sorry I missed the sarcasm:)

I am still amazed they are still no way near having schnorr.. yet segwit was sold as simplifing protocol upgrade.

27

u/meta96 Jul 29 '19

Best bitcoin developers ... are now on BCH, #dealwithit

22

u/libertarian0x0 Jul 29 '19

The sad part: outside /r/btc, most people just know the maximalist narrative.

13

u/meta96 Jul 29 '19

The good part: on /r/bitcoin, most of the intelligent maximalists can see, best devs are not on bitcoin core anymore (winke, winke ...)

7

u/[deleted] Jul 29 '19

Good thing there's a quarter of them who are open minded enough to be curious about this sub

9

u/Dixnorkel Jul 29 '19

We at /r/bitcoin are hard at work shilling vaporware and federated sidechains over actual blockchain usage, you can tell we have some of the most enthusiastic middle schoolers in the market from the high levels of engagement in our shitposts. Don't choose the scam projects that tell you to actually use your coins or take advantage of lower fees, just #hodlhodlhodl until more suckers buy it and you're rich!

6

u/chalbersma Jul 29 '19

We just can't compete with lambomoom memes!

3

u/kaczan3 Jul 29 '19

I think that when the Core croud are talking about lambo, they mean their lobotoby.

7

u/[deleted] Jul 29 '19

BCH PLS

7

u/Neutral_User_Name Jul 29 '19

That simply is mind-blowing.

Also, I sent a bunch of cash to BCD recently, please support your favourite project.

Is there a way to support @jtoomim, I really like is implication, style and work.

3

u/hawks5999 Jul 29 '19

But I thought all the greatest minds only worked on SOVCoin and bcash was just frauds and scammers. It looks like you are destroying that narrative. Halp!!!

-4

u/hashop Jul 29 '19

An SPV node cant validate the total amount of coins in circulation.

11

u/jessquit Jul 29 '19

a full node can't validate or prevent any soft fork changes including Peter Todd's soft fork 21M coin limit change or an increase in the block size limit, so....

2

u/[deleted] Jul 30 '19

An SPV node doesn't need to validate the total amount of coins in circulation. Cryptographic summaries from multiple nodes, along with a priori data such as the genesis block's hash, can serve as a "trustworthy-enough" source of evidence that the coin limitation is being adhered to. The purpose of SPV is not to deliver Bitcoin's security, but to leverage it in a user-friendly manner. In the event of a chain that violates the limitation, at least some nodes will recognize it as invalid, and the SPV client will have a clear indicator that miner malfeasance is taking place.

SPV doesn't have to protect end users from 51% attacks, because Bitcoin can't protect users from 51% attacks by design. Altering the distribution schedule would require a 51% attack; if a minority chain follows this invalid rule, it's not going to be recognized by other miners or clients, and thus will fail to alter the chain.

-24

u/BTCForever9x9 Jul 29 '19

What have you contributed to the BCH community?

10

u/Neutral_User_Name Jul 29 '19

The fact you are asking is proof you have no fucking clue what you are talking about! Get out of here.

5

u/DylanKid Jul 29 '19

Good one