<p dir="ltr"><br>
Den 12 mar 2015 17:48 skrev &quot;Mike Hearn&quot; &lt;<a href="mailto:mike@plan99.net">mike@plan99.net</a>&gt;:<br>
&gt;&gt;<br>
&gt;&gt; b) &quot;Creation date&quot; is just a short-term hack. <br>
&gt;<br>
&gt;<br>
&gt; I agree, but we need things to be easy in the short term as well as the long term :) <br>
&gt;<br>
&gt; The long term solution is clearly to have the 12 word seed be an encryption key for a wallet backup with all associated metadata. We&#39;re heading in that direction one step at a time. Unfortunately it will take time for wallets to start working this way, and all the pieces to fall into place. Restoring from the block chain will be a semi regular operation for users until then.</p>
<p dir="ltr">This have been mentioned a few times before, and what I think is necessary is to create a common file format that can be interpreted by a library which all wallets can use. I see it as similar as the work to create libconsensus for parsing the blockchain. </p>
<p dir="ltr">We need something extensible that can describe how to derive all addresses used by the user. What HD branches to derive and how, with block numbers (or bloom filters of block hashes or similar) to note where all previously known transactions related to the wallet have occurred, and the last known block (so only new blocks need to be scanned).</p>
<p dir="ltr">A way to describe one HD tree as a multisignature wallet tied to a hardware wallet if you have that (could include serial number or MAC of the device for simple identification by the wallet client). A way to describe another set of addresses as using a custom extension. A way to denote one private key as being used for stealth addresses together with details for how to identify the transactions (prefix, mailbox to look in, etc). Labels for transactions. P2SH script templates so those addresses can be recovered. A way to describe Copay style multisignature wallets and what server to use for coordinating with the other coowners. A way to describe threshold crypto group signature wallets and how to coordinate. Computer parsable descriptions of HD branches as change addresses, as being used for receiving payments in merchant payment systems, etc... Also, you should really be talking to people like accountants and auditors to see what features they&#39;d like to see when it comes to things like how company wallets could have rules defined for how to use the various HD branches. </p>
<p dir="ltr">And so on... I think you get my point by now. </p>
<p dir="ltr">The basic idea is that the wallet uses the library to parse the wallet file and tells the user which sections it understands (can&#39;t expect all wallets to handle custom extensions or stealth addresses, etc), then proceeds to scan the blockchain for those addresses. Then the user also won&#39;t be surprised that not all funds are found and won&#39;t think they&#39;re lost. </p>
<p dir="ltr">I think it should be referred to as an import/export format, more than as a backup format.</p>
<p dir="ltr">You always want the most recent metadata the wallet of origin can provide when importing, to reduce unnecessary extra work. You don&#39;t want really old backup files. If people add new seeds and various new extensions that can&#39;t be automatically recovered from old wallet backups, they need new backups. You might as well use the wallet&#39;s own internal formats for backup, as the wallet developer might better know how to optimize for the use cases he have designed for. But at the same time we should ask wallet developers to offer conversion tools to generate export format files from custom wallet data files.</p>