From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from sog-mx-1.v43.ch3.sourceforge.com ([172.29.43.191] helo=mx.sourceforge.net) by sfs-ml-4.v29.ch3.sourceforge.com with esmtp (Exim 4.76) (envelope-from ) id 1Wjp3Q-0007ff-AF for bitcoin-development@lists.sourceforge.net; Mon, 12 May 2014 12:10:00 +0000 Received-SPF: pass (sog-mx-1.v43.ch3.sourceforge.com: domain of gmail.com designates 209.85.192.44 as permitted sender) client-ip=209.85.192.44; envelope-from=jan.moller@gmail.com; helo=mail-qg0-f44.google.com; Received: from mail-qg0-f44.google.com ([209.85.192.44]) by sog-mx-1.v43.ch3.sourceforge.com with esmtps (TLSv1:RC4-SHA:128) (Exim 4.76) id 1Wjp3P-00087j-3W for bitcoin-development@lists.sourceforge.net; Mon, 12 May 2014 12:10:00 +0000 Received: by mail-qg0-f44.google.com with SMTP id i50so7435977qgf.17 for ; Mon, 12 May 2014 05:09:53 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.140.105.163 with SMTP id c32mr35911463qgf.36.1399896593506; Mon, 12 May 2014 05:09:53 -0700 (PDT) Received: by 10.140.47.35 with HTTP; Mon, 12 May 2014 05:09:53 -0700 (PDT) In-Reply-To: References: <1927948.OEZHQcsQ9n@crushinator> <2025496.b5Y3n7qx8B@crushinator> <1582E990-4E14-4EF7-9C9C-AA505B815104@bitsofproof.com> <53568B87.8040009@monetize.io> <11528A13-5D66-4D2B-BEE0-1C26F9987BC8@bitsofproof.com> <621AAD7D-FDC0-4C3C-B810-8C1F0B088586@bitsofproof.com> Date: Mon, 12 May 2014 14:09:53 +0200 Message-ID: From: =?UTF-8?Q?Jan_M=C3=B8ller?= To: Nikita Schmidt , Bitcoin Dev Content-Type: multipart/alternative; boundary=001a1139bcd42da74504f932d3a1 X-Spam-Score: -0.6 (/) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -1.5 SPF_CHECK_PASS SPF reports sender host as permitted sender for sender-domain 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (jan.moller[at]gmail.com) -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [209.85.192.44 listed in list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record 1.0 HTML_MESSAGE BODY: HTML included in message -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-Headers-End: 1Wjp3P-00087j-3W Subject: Re: [Bitcoin-development] Presenting a BIP for Shamir's Secret Sharing of Bitcoin private keys X-BeenThere: bitcoin-development@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list Reply-To: jan.moller@gmail.com List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 May 2014 12:10:02 -0000 --001a1139bcd42da74504f932d3a1 Content-Type: text/plain; charset=UTF-8 A Java implementation of what is called BIPSS in lack of an official number can be found here: https://github.com/mycelium-com/wallet/blob/master/public/bitlib/src/main/java/com/mrd/bitlib/crypto/BipSs.java (passing all test vectors) Which is based on a GF2^8 implementation here: https://github.com/mycelium-com/wallet/blob/master/public/bitlib/src/main/java/com/mrd/bitlib/crypto/Gf256.java I think having 3 encoding formats (long/short/compact) is over engineered, and basically only makes implementing the standard a pain in the rear. From a user experience point of view only the long format makes sense, and it is only a few bytes longer than the short version. On Mon, May 5, 2014 at 9:36 PM, Nikita Schmidt < nikita@megiontechnologies.com> wrote: > A fork of Matt's proposal converted to GF(2^8) is here: > https://github.com/cetuscetus/btctool/blob/bip/bip-xxxx.mediawiki > > Other changes include: > - only six application/version bytes are allocated, which is the > minimum to ensure that the encoded form starts with S in all cases; > - encoded prefixes are SK/SL for a shared private key > (mainnet/testnet) and SS/ST for a shared BIP32 seed; > - the only hash function in use is SHA-256, which is the all-purpose > hash function in the Bitcoin protocol; > - double SHA is used for similarity with Bitcoin, although Jan and I > believe single SHA is enough in this application; > - bias-less encoding of M and x, because there can't be more than 255 > shares over GF(2^8). > > > On 23 April 2014 09:16, Gregory Maxwell wrote: > > On Tue, Apr 22, 2014 at 10:33 PM, Tamas Blummer > wrote: > >> So you agree, that SSS should not contain specific flag for testnet? > >> > >> Or for that matter not even BIP32 needs them since it is not an address > to > >> send to. > > > > I think the convention we have so far is that addresses and address > > relate thing we share normally contain an opaque 'version' identifier > > which we use to identify the purpose for the data (E.g. network > > meaning, etc.) and I think its a generally reasonable custom. > > > > > ------------------------------------------------------------------------------ > > Start Your Social Network Today - Download eXo Platform > > Build your Enterprise Intranet with eXo Platform Software > > Java Based Open Source Intranet - Social, Extensible, Cloud Ready > > Get Started Now And Turn Your Intranet Into A Collaboration Platform > > http://p.sf.net/sfu/ExoPlatform > > _______________________________________________ > > Bitcoin-development mailing list > > Bitcoin-development@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find > out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Bitcoin-development mailing list > Bitcoin-development@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/bitcoin-development > --001a1139bcd42da74504f932d3a1 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
A Java implementation of what is called BIPSS in lack of a= n official number can be found here:
(passing all test vectors)

Which is based= on a GF2^8 implementation here:

I think having 3 encoding formats (long/short/com= pact) is over engineered, and basically only makes implementing the standar= d a pain in the rear. From a user experience point of view only the long fo= rmat makes sense, and it is only a few bytes longer than the short version.=




On Mon, May 5, 2014 at 9:36 PM, Nikita Schmidt <nikita@megiontechnologies.com> wrote:
A fork of Matt's proposal converted to G= F(2^8) is here:
https://github.com/cetuscetus/btctool/blob/bip/bip-xxx= x.mediawiki

Other changes include:
- only six application/version bytes are allocated, which is the
minimum to ensure that the encoded form starts with S in all cases;
- encoded prefixes are SK/SL for a shared private key
(mainnet/testnet) and SS/ST for a shared BIP32 seed;
- the only hash function in use is SHA-256, which is the all-purpose
hash function in the Bitcoin protocol;
- double SHA is used for similarity with Bitcoin, although Jan and I
believe single SHA is enough in this application;
- bias-less encoding of M and x, because there can't be more than 255 shares over GF(2^8).


On 23 April 2014 09:16, Gregory Maxwell <gmaxwell@gmail.com> wrote:
> On Tue, Apr 22, 2014 at 10:33 PM, Tamas Blummer <tamas@bitsofproof.com> wrote:
>> So you agree, that SSS should not contain specific flag for testne= t?
>>
>> Or for that matter not even BIP32 needs them since it is not an ad= dress to
>> send to.
>
> I think the convention we have so far is that addresses and address > relate thing we share normally contain an opaque 'version' ide= ntifier
> which we use to identify the purpose for the data (E.g. network
> meaning, etc.) and I think its a generally reasonable custom.
>
> ------------------------------------------= ------------------------------------
> Start Your Social Network Today - Download eXo Platform
> Build your Enterprise Intranet with eXo Platform Software
> Java Based Open Source Intranet - Social, Extensible, Cloud Ready
> Get Started Now And Turn Your Intranet Into A Collaboration Platform > http://p= .sf.net/sfu/ExoPlatform
> _______________________________________________
> Bitcoin-development mailing list
> Bitcoin-d= evelopment@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/bitco= in-development

---------------------------------------------------------------------= ---------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out= :
&#149; 3 signs your SCM is hindering your productivity
&#149; Requirements for releasing software faster
&#149; Expert tips and advice for migrating your SCM now
http://p.sf.net/= sfu/perforce
___________________________________= ____________
Bitcoin-development mailing list
Bitcoin-develo= pment@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bitcoin-de= velopment

--001a1139bcd42da74504f932d3a1--