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