public inbox for bitcoindev@googlegroups.com
 help / color / mirror / Atom feed
From: Gregory Maxwell <gmaxwell@gmail.com>
To: Drak <drak@zikula.org>
Cc: Bitcoin Dev <bitcoin-development@lists.sourceforge.net>
Subject: Re: [Bitcoin-development] MtGox blames bitcoin
Date: Mon, 10 Feb 2014 04:25:34 -0800	[thread overview]
Message-ID: <CAAS2fgTx8UzQiocyNMfMNkt2uUZRTmhagb2BY9TPuAupVjVa2g@mail.gmail.com> (raw)
In-Reply-To: <CANAnSg1LgpHGf-vTV0to1Z7sogf1ic6WTbogEsrQy1wh4C5zfw@mail.gmail.com>

On Mon, Feb 10, 2014 at 3:28 AM, Drak <drak@zikula.org> wrote:
> What is the official response from the Bitcoin Core developers about MtGox's
> assertion that their problems are due to a fault of bitcoin, as opposed to a
> fault of their own?
>
> The technical analysis preluding this mess, was that MtGox was at fault for
> their faulty wallet implementation.

In the real world fault seldom falls in a single place. Bitcoin is at
fault— in many places— for making it harder for implementers to get
things right.   MtGox is at fault for not implementing in a way that
copes with behaviors in the Bitcoin protocol which have been known
since at least 2011.
(https://en.bitcoin.it/wiki/Transaction_Malleability).

Not that Bitcoin-QT handles Malleability fantastically— but because it
tracks inputs it will still detect the mutant transactions.

An interesting point which I haven't pointed out elsewhere is that for
the question of basic funds safety in re-issuing a transaction
mallablity is basically irrelevant.

Say you pay someone and it doesn't go through (or it does and you
don't see it because its been mutated and your software can't detect
that), and they ask you to reissue.... if you reissue without
double-spending any of the original inputs you are at risk of getting
robbed. This is true with or without malleability.  Without the
double-spend of at least one input the original transaction could just
go through in addition to your reissue.

Say that you do make sure to double spend at least one input—  then
the result is funds safe safe, regardless of if a mutation happened.

Say you want to support _canceling_ a payment (send me the goat
instead!) rather than reissue you still must double-spend the
attempted payment to cancel it, since it still might go through if you
don't.  And the double spend works to protect this case regardless of
if the transaction was mutated.

For support and accounting purposes you absolutely do need tools to
identify mutated transactions, so long as mutation exists... so we
ought to provide some better tools there.  But I can't think a case
where mutation handling is necessary or sufficient for cancellation
security, but— rather— input tracking appears to be both necessary and
sufficient in all cancellation cases.

This helps explain why Bitcoin-QT— whos mutation handling kinda
stinks— doesn't ever end up in a really bad situation with mutants: it
tracks inputs pretty well.

In any case, I've always been happy to help out Mtgox with technical
issues. Having some specs for a stable transaction ID would probably
be helpful to many applications, even if it isn't the critical key you
need for cancellation security.  Removing mallability entirely has
been a soft long term goal, and there were recently (as in today) some
posts about it— look at the list archives... though it won't happen
fast since all signers/wallets will need to be updated.



  parent reply	other threads:[~2014-02-10 12:25 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-10 11:28 [Bitcoin-development] MtGox blames bitcoin Drak
2014-02-10 11:54 ` sickpig
2014-02-10 12:25 ` Gregory Maxwell [this message]
2014-02-10 14:40 ` Isidor Zeuner
2014-02-10 16:30   ` Troy Benjegerdes
2014-02-10 16:45     ` Gregory Maxwell
2014-02-10 18:25       ` Troy Benjegerdes
2014-02-10 18:45         ` Jameson Lopp
2014-02-10 18:53           ` Gavin Andresen
2014-02-10 19:07           ` Troy Benjegerdes
2014-02-10 19:23             ` Peter Todd
2014-02-10 19:30               ` naman naman
2014-02-10 19:40                 ` Peter Todd
     [not found]                   ` <52F9377D.9010405@gmail.com>
2014-02-11 20:42                     ` naman naman
2014-02-11 20:49                       ` Gregory Maxwell
2014-02-11 20:56                         ` naman naman
2014-02-13 12:20                           ` naman naman
2014-02-10 16:49   ` Drak

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAAS2fgTx8UzQiocyNMfMNkt2uUZRTmhagb2BY9TPuAupVjVa2g@mail.gmail.com \
    --to=gmaxwell@gmail.com \
    --cc=bitcoin-development@lists.sourceforge.net \
    --cc=drak@zikula.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox