<oembed><type>rich</type><version>1.0</version><author_name>npub1tjephawh7fdf6358jufuh5eyxwauzrjqa7qn50pglee4tayc2ntqcjtl6r</author_name><author_url>https://nostr.ae/npub1tjephawh7fdf6358jufuh5eyxwauzrjqa7qn50pglee4tayc2ntqcjtl6r</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2014-03-27&#xA;📝 Original message:Just chiming in...&#xA;&#xA;I&#39;m not opposed to a more generic default key tree, but we need to&#xA;standardize this soon I believe. There are already existing code bases&#xA;that implement BIP32 wallets (and more are popping up...); just using&#xA;a separate one will result in lots of incompibilities.&#xA;&#xA;That said, I&#39;m not convinced about the extra layers. The &#34;cointype&#34; in&#xA;my opinion isn&#39;t necessary inside the derivation. There is already&#xA;support (4 bytes!) for magic bytes in the serialized form. Inside&#xA;applications/p2p it should always be known to which chain it applies,&#xA;and outside of that you shouldn&#39;t transfer raw keys. Maybe seeds need&#xA;some marker, but that&#39;s a separate case anyway. Mainnet and testnet&#xA;have specified magics here already - alts can define what they want&#xA;imho.&#xA;&#xA;A &#39;reserved&#39; field for future extensions may be useful, but as already&#xA;suggested by Mike, I don&#39;t believe we can encode how key chains are to&#xA;be used inside the derivation structure anyway. The most basic case&#xA;(not losing money in a wallet without special structure) can perhaps&#xA;be supported with just &#34;the blockchain is your wallet&#34;, but I don&#39;t&#xA;believe this principle can scale to more advanced uses anyway, and you&#xA;need metadata in the wallet to deal with it.&#xA;&#xA;In my view, your wallet just has a bunch of chains, and each chain&#xA;gets used for a particular purpose, fixing how the derivation beneath&#xA;it works. Either that is as a wallet, as part of a pair of multisig&#xA;keys, as a recurring payment receiver, ... or more complex things.&#xA;Some of these will require extra layers beneath, but that is&#xA;application specific. You would import a chain into your (advanced)&#xA;wallet with a particular extpub/extpriv code, and some metadata on how&#xA;to use it. Serialization formats for such designated extra uses sounds&#xA;better to me than trying to fit it into the derivation structure.&#xA;&#xA;-- &#xA;Pieter&#xA;&#xA;&#xA;On Thu, Mar 27, 2014 at 4:57 PM, Allen Piscitello&#xA;&lt;allen.piscitello at gmail.com&gt; wrote:&#xA;&gt; Don&#39;t most of these coins have a magic number already assigned that is&#xA;&gt; unique? (0xD9B4BEF9 for Bitcoin, 0x0709110B for Testnet, FBC0XB6DB for&#xA;&gt; Litecoin, etc...).  This seems like a good candidate for identifying coins,&#xA;&gt; and also supports Testnet cases well.  Maybe there are some alts without&#xA;&gt; such a magic number that might prevent that?&#xA;&gt;&#xA;&gt; -Allen&#xA;&gt;&#xA;&gt;&#xA;&gt; On Thu, Mar 27, 2014 at 10:43 AM, Jeff Garzik &lt;jgarzik at bitpay.com&gt; wrote:&#xA;&gt;&gt;&#xA;&gt;&gt; On Thu, Mar 27, 2014 at 3:09 AM, Tamas Blummer &lt;tamas at bitsofproof.com&gt;&#xA;&gt;&gt; wrote:&#xA;&gt;&gt; &gt; A notable suggestion was to instead of building a directory of magic&#xA;&gt;&gt; &gt; numbers&#xA;&gt;&gt; &gt; (like 0 for Bitcoin, 1 for Litecoin etc) use a hash of the word&#xA;&gt;&gt; &gt; &#34;Bitcoin&#34;,&#xA;&gt;&gt; &gt; &#34;Litecoin&#34;, &#34;Dogecoin&#34;, so collosion is unlikely and&#xA;&gt;&gt; &gt; cetral directory is not needed.&#xA;&gt;&gt;&#xA;&gt;&gt; +1 good idea&#xA;&gt;&gt;&#xA;&gt;&gt; --&#xA;&gt;&gt; Jeff Garzik&#xA;&gt;&gt; Bitcoin core developer and open source evangelist&#xA;&gt;&gt; BitPay, Inc.      https://bitpay.com/&#xA;&gt;&gt;&#xA;&gt;&gt;&#xA;&gt;&gt; ------------------------------------------------------------------------------&#xA;&gt;&gt; _______________________________________________&#xA;&gt;&gt; Bitcoin-development mailing list&#xA;&gt;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;&#xA;&gt;&#xA;&gt;&#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt;&#xA;&gt; _______________________________________________&#xA;&gt; Bitcoin-development mailing list&#xA;&gt; Bitcoin-development at lists.sourceforge.net&#xA;&gt; https://lists.sourceforge.net/lists/listinfo/bitcoin-development&#xA;&gt;</html></oembed>