From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 4BF85B93 for ; Fri, 23 Dec 2016 17:35:51 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-oi0-f42.google.com (mail-oi0-f42.google.com [209.85.218.42]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id B389423E for ; Fri, 23 Dec 2016 17:35:50 +0000 (UTC) Received: by mail-oi0-f42.google.com with SMTP id v84so275945218oie.3 for ; Fri, 23 Dec 2016 09:35:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7tcuIGc2HqPKi21nwG1Pgaozi3GeC37c0f0EW1soVNU=; b=TIl/Kx9n0joG3Z7qk9c5hxKvlgZpirP0Xe+/x1r3ZnTVXio5Wfds4BlS4LZPtfoMok GpJqGo65J2gT0HnKHAYbmJnUsi9V/v4qfKQl+LOU62GxgJHDm6chh/0gPrnc6vqQq+fq xL+gCfZIn3tTOirGgmkl2ulZJp4+Wj0iT1AFZ+jj3mF40YVJiYuJjN39cGwjcos6inJd 73NHQgXOH3Na7bp1FZAlqDpCqWGS7FAKLNQzHDavxnbjeOFLWjs55BPGiIkDR/lHrXBg ltWeT6lqw5s4YjEtYyDfJxsA5eHlr2MLy3JmrVPs6zNcDTRFPe6nVYE32Nh+s33834Pd nOTg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7tcuIGc2HqPKi21nwG1Pgaozi3GeC37c0f0EW1soVNU=; b=EMxEq1HpLNb4Rts/IbwRkJECFHddK3nRZzYnheLtkXk8ot4kPYKYnNnJeIoQrKTxmX /0E7bothGrxCpn538P2ddzT3OvrclXRLDTyvJGQQ3v7zI6ena8PCCbiPIRW4TGAsJmul BbUhR0vhcUAx6zTxTNFSgNrWVRYMy/cGTba/3ZU3An2YOgc56eNXUHElkfCrTFhzr38b Zugsyb3yNB2UOuahvDGwgeyQ4nseRSA1yyVG4N4uLjt32Y/2RFLm+IutPcOCZOXouvAP ToO2/iGdYqg3DzS0usF/+NgqLGPrxlqti0lhNmlVsfV7mMAP30ZLv2tTKy9zwgjqNlOv jGOQ== X-Gm-Message-State: AIkVDXIbYeSihS99rBkn1XR97D823DwjgpMjqXHH/3uOWmoLA50p96K/OdlKxc8sxj3wFpwuHiM4AmVWgiQzxg== X-Received: by 10.157.20.35 with SMTP id h32mr8814650oth.37.1482514550029; Fri, 23 Dec 2016 09:35:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.182.194.74 with HTTP; Fri, 23 Dec 2016 09:35:49 -0800 (PST) In-Reply-To: References: From: Nick ODell Date: Fri, 23 Dec 2016 10:35:49 -0700 Message-ID: To: Andrew , Bitcoin Protocol Discussion 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, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: Re: [bitcoin-dev] Multisig with hashes instead of pubkeys X-BeenThere: bitcoin-dev@lists.linuxfoundation.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Bitcoin Protocol Discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 23 Dec 2016 17:35:51 -0000 The first issue is that doing two OP_SWAP's in a row will just return you to the original state. The second issue is that all of them end up hashing the same key, so anyone on the network can spend this output. (See https://en.bitcoin.it/wiki/Script for a good resource on opcodes and what each of them do. There are also a few simulators floating around, but I can't recommend any in particular.) Third, if you're concerned about exposing public keys, why not use a P2SH script? That won't expose your public keys until you spend from it. On Thu, Dec 22, 2016 at 11:29 AM, Andrew via bitcoin-dev wrote: > Hi > > Is there a worked out scriptPubKey for doing multisig with just hashes > of the participants? I think it is doable and it is more secure to a > compromised ECDSA. I'm thinking something like this for the > scriptPubKey: > 2 OP_SWAP OP_SWAP OP_SWAP OP_DUP OP_HASH160 > OP_EQUALVERIFY OP_DUP OP_HASH160 OP_EQUALVERIFY OP_DUP > OP_HASH160 OP_EQUALVERIFY 3 OP_CHECKMULTISIG > > and for the scriptSig > > Can anyone confirm or send me a link to the worked out script? > > Thanks > > -- > PGP: B6AC 822C 451D 6304 6A28 49E9 7DB7 011C D53B 5647 > _______________________________________________ > bitcoin-dev mailing list > bitcoin-dev@lists.linuxfoundation.org > https://lists.linuxfoundation.org/mailman/listinfo/bitcoin-dev