summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2016-02-25 19:34:24 -0600
committerbitcoindev <bitcoindev@gnusha.org>2016-02-26 01:34:25 +0000
commit065f6f595f6aff5189b866bf40c6726464cb60c7 (patch)
treec543697eacd60fee827904b79b02936876af82c8
parent10a8b62a2a6540f0866e2346067c6966fc5ae1d7 (diff)
downloadpi-bitcoindev-065f6f595f6aff5189b866bf40c6726464cb60c7.tar.gz
pi-bitcoindev-065f6f595f6aff5189b866bf40c6726464cb60c7.zip
Re: [bitcoin-dev] SIGHASH_NOINPUT in Segregated Witness
-rw-r--r--12/936ef7034d9e9dbc1650e4a5ff4098c8b15a62107
1 files changed, 107 insertions, 0 deletions
diff --git a/12/936ef7034d9e9dbc1650e4a5ff4098c8b15a62 b/12/936ef7034d9e9dbc1650e4a5ff4098c8b15a62
new file mode 100644
index 000000000..d90d741f7
--- /dev/null
+++ b/12/936ef7034d9e9dbc1650e4a5ff4098c8b15a62
@@ -0,0 +1,107 @@
+Return-Path: <kanzure@gmail.com>
+Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org
+ [172.17.192.35])
+ by mail.linuxfoundation.org (Postfix) with ESMTPS id E6D9EC70;
+ Fri, 26 Feb 2016 01:34:25 +0000 (UTC)
+X-Greylist: whitelisted by SQLgrey-1.7.6
+X-Greylist: whitelisted by SQLgrey-1.7.6
+Received: from mail-oi0-f52.google.com (mail-oi0-f52.google.com
+ [209.85.218.52])
+ by smtp1.linuxfoundation.org (Postfix) with ESMTPS id 6F06B20D;
+ Fri, 26 Feb 2016 01:34:25 +0000 (UTC)
+Received: by mail-oi0-f52.google.com with SMTP id x21so52711213oix.2;
+ Thu, 25 Feb 2016 17:34:25 -0800 (PST)
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
+ h=mime-version:in-reply-to:references:date:message-id:subject:from:to
+ :content-type; bh=xzpDFnWxVn+xs77Uvl06d9qhtN9gb0zlYwtYi1YrlmQ=;
+ b=rbTCcVysBLUbChPbUSF4JTWCFwCur4hbjeuqAMoxvseTMWYOTRWf6/Ov6Lvgqr/bGp
+ b0xDJygNFjEvATsR0W/ycl6y+p9j9/BQdcmMQUn2+kxKuhARAGo40V3wha+Jt2cf++VU
+ +LT8UxHG5u8kbl1LAa4KyBaLrezhYd5k/6hN6tztKN1MSYe+TjxBpmxG3a9s3ML6buJ2
+ OIRdZ0g7GDVQcI98tSgbonAnA3shyFaSrN5QILnYSk+QCuEGiBW2cQmJBdFIYbTBjBUQ
+ uzyGOzXXhV/d0zbtMjYJ9F2Y8ewTFQZ5J7QRQRkNLLorMKxX62MlRUuVElUxCsmlmDh8
+ P+wQ==
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
+ d=1e100.net; s=20130820;
+ h=x-gm-message-state:mime-version:in-reply-to:references:date
+ :message-id:subject:from:to:content-type;
+ bh=xzpDFnWxVn+xs77Uvl06d9qhtN9gb0zlYwtYi1YrlmQ=;
+ b=LpKkvcLiLLZAP2UqkcAsqTA8tZO57SNcll4b2NXnp2uKSRyLZKe5OGFJDJkshXEtel
+ JxvJtkSpdhxV5qQilCD5jh+tLxF/iJ4j3O+Ot1gBbtlb0L3WnbtRbDxTHCa8aWHHxEW8
+ xY6eXxQuOftt8k1W2QJdsbUkcrJEvn+uPNik8R8UQxydsGuOqVkt9ejhJEFRb8+fZllH
+ PKi114IzXfhYD26n2ASNg2fSM1NH1RKs10aD6SZMayRNCCdlw8XF5LwGr/s/OZ+p+yJy
+ r2elL5Mq/meX0olFK7cy3Lxldf7LQACcMAAJygKPQ71s0k45wholI0oH77mEisSnwx/1
+ K8/w==
+X-Gm-Message-State: AG10YOR17V6demUKUd22nVpngnLfVLIQFEePmNu8sMCu2VnIe221IcRikofGlQeMyZJi9LiYibvqN/TbnLy8OQ==
+MIME-Version: 1.0
+X-Received: by 10.202.172.149 with SMTP id v143mr37346032oie.121.1456450464779;
+ Thu, 25 Feb 2016 17:34:24 -0800 (PST)
+Received: by 10.157.17.117 with HTTP; Thu, 25 Feb 2016 17:34:24 -0800 (PST)
+In-Reply-To: <20160226010746.GB10295@lightning.network>
+References: <20160226010746.GB10295@lightning.network>
+Date: Thu, 25 Feb 2016 19:34:24 -0600
+Message-ID: <CABaSBayZ3+UjuzMSuOypiMzB7_5iE3ssD6Pfu3oA0Nnm5tWMPw@mail.gmail.com>
+From: Bryan Bishop <kanzure@gmail.com>
+To: Joseph Poon <joseph@lightning.network>,
+ Bitcoin Dev <bitcoin-dev@lists.linuxfoundation.org>,
+ lightning-dev <lightning-dev@lists.linuxfoundation.org>,
+ Bryan Bishop <kanzure@gmail.com>
+Content-Type: text/plain; charset=UTF-8
+X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,
+ DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM autolearn=ham version=3.3.1
+X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on
+ smtp1.linux-foundation.org
+X-Mailman-Approved-At: Fri, 26 Feb 2016 01:35:35 +0000
+Subject: Re: [bitcoin-dev] SIGHASH_NOINPUT in Segregated Witness
+X-BeenThere: bitcoin-dev@lists.linuxfoundation.org
+X-Mailman-Version: 2.1.12
+Precedence: list
+List-Id: Bitcoin Development Discussion <bitcoin-dev.lists.linuxfoundation.org>
+List-Unsubscribe: <https://lists.linuxfoundation.org/mailman/options/bitcoin-dev>,
+ <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=unsubscribe>
+List-Archive: <http://lists.linuxfoundation.org/pipermail/bitcoin-dev/>
+List-Post: <mailto:bitcoin-dev@lists.linuxfoundation.org>
+List-Help: <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=help>
+List-Subscribe: <https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev>,
+ <mailto:bitcoin-dev-request@lists.linuxfoundation.org?subject=subscribe>
+X-List-Received-Date: Fri, 26 Feb 2016 01:34:26 -0000
+
+On Thu, Feb 25, 2016 at 7:07 PM, Joseph Poon wrote:
+> This would be achieved using a SIGHASH flag, termed SIGHASH_NOINPUT. It
+> does not include as part of the signature, the outpoint being spent
+> (txid and index), nor the amount. It however, would include the spent
+> outpoint's script as part of the signature. Note that this is just a
+
+Well if you are bothering to draft up a BIP about that SIGHASH flag,
+then perhaps also consider some other SIGHASH flag types as well while
+you are at it?
+
+Various proposed sighash types:
+http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-August/010759.html
+
+"Build your own nHashType" proposal draft:
+https://github.com/scmorse/bitcoin-misc/blob/master/sighash_proposal.md
+
+jl2012's reply:
+http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-August/010779.html
+
+petertodd's reply about OP_CODESEPARATOR linked back to this thread
+regarding "Build your own nHashType":
+http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-April/007771.html
+http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-April/007802.html
+http://gnusha.org/bitcoin-wizards/2014-12-09.log
+
+((That particular thread had other replies which can be viewed here:
+http://lists.linuxfoundation.org/pipermail/bitcoin-dev/2015-April/thread.html
+))
+
+Also, there was a draft implementation of SIGHASH_NOINPUT:
+https://github.com/Roasbeef/bitcoin/commit/4b3c3f1baf7985208ceb6887261ee150ab6e3328
+https://github.com/Roasbeef/btcd/commit/67830e506fa135d5239177340918cea39909e6a4
+
+FWIW there was some concern about replay using SIGHAHS_NOINPUT or something:
+http://gnusha.org/bitcoin-wizards/2015-04-07.log
+
+- Bryan
+http://heybryan.org/
+1 512 203 0507
+