The problem is if someone moves system time forward between app launches. The lockout period doesn&#39;t have to be all that precise, it just makes you wait for the next block, then 5, then 25, and so on. Using a well known time server over<span></span> https would also be a good option, but the wallet app already has the chain height anyway.<br>
<br>On Friday, July 25, 2014, Mike Hearn &lt;<a href="mailto:mike@plan99.net">mike@plan99.net</a>&gt; wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">
Given that the speed at which the block chain advances is kind of unpredictable, I&#39;d think it might be better to just record the time to disk when a PIN attempt is made and if you observe time going backwards, refuse to allow more attempts until it&#39;s advanced past the previous attempt.</div>

<div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 7:56 AM, Aaron Voisine <span dir="ltr">&lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;voisine@gmail.com&#39;);" target="_blank">voisine@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It&#39;s based on the block height, not the block&#39;s timestamp. If you have<br>
access to the device and the phone itself is not pin locked, then you<br>
can jailbreak it and get access to the wallet seed that way. A pin<br>
locked device however is reasonably secure as the filesystem is<br>
hardware aes encrypted to a combination of pin+uuid. This was just an<br>
easy way to prevent multiple pin guesses by changing system time in<br>
settings, so that isn&#39;t the weakest part of the security model.<br>
<span><font color="#888888"><br>
Aaron Voisine<br>
<a href="http://breadwallet.com" target="_blank">breadwallet.com</a><br>
</font></span><div><div><br>
<br>
On Thu, Jul 24, 2014 at 8:21 PM, William Yager &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;will.yager@gmail.com&#39;);" target="_blank">will.yager@gmail.com</a>&gt; wrote:<br>
&gt; On Thu, Jul 24, 2014 at 10:39 PM, Gregory Maxwell &lt;<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;gmaxwell@gmail.com&#39;);" target="_blank">gmaxwell@gmail.com</a>&gt;<br>
&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Is breadwallet tamper resistant &amp; zero on tamper hardware? otherwise<br>
&gt;&gt; this sounds like security theater.... I attach a debugger to the<br>
&gt;&gt; process (or modify the program) and ignore the block sourced time.<br>
&gt;&gt;<br>
&gt;<br>
&gt; It&#39;s an iOS application. I would imagine it is substantially more difficult<br>
&gt; to attach to a process (which, at the very least, requires root, and perhaps<br>
&gt; other things on iOS) than to convince the device to change its system time.<br>
&gt;<br>
&gt; That said, the security benefits might not be too substantial.<br>
&gt;<br>
</div></div><div><div>&gt; ------------------------------------------------------------------------------<br>
&gt; Want fast and easy access to all the code in your enterprise? Index and<br>
&gt; search up to 200,000 lines of code with a free copy of Black Duck<br>
&gt; Code Sight - the same software that powers the world&#39;s largest code<br>
&gt; search on Ohloh, the Black Duck Open Hub! Try it now.<br>
&gt; <a href="http://p.sf.net/sfu/bds" target="_blank">http://p.sf.net/sfu/bds</a><br>
&gt; _______________________________________________<br>
&gt; Bitcoin-development mailing list<br>
&gt; <a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;Bitcoin-development@lists.sourceforge.net&#39;);" target="_blank">Bitcoin-development@lists.sourceforge.net</a><br>
&gt; <a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
&gt;<br>
<br>
------------------------------------------------------------------------------<br>
Want fast and easy access to all the code in your enterprise? Index and<br>
search up to 200,000 lines of code with a free copy of Black Duck<br>
Code Sight - the same software that powers the world&#39;s largest code<br>
search on Ohloh, the Black Duck Open Hub! Try it now.<br>
<a href="http://p.sf.net/sfu/bds" target="_blank">http://p.sf.net/sfu/bds</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="javascript:_e(%7B%7D,&#39;cvml&#39;,&#39;Bitcoin-development@lists.sourceforge.net&#39;);" target="_blank">Bitcoin-development@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/bitcoin-development" target="_blank">https://lists.sourceforge.net/lists/listinfo/bitcoin-development</a><br>
</div></div></blockquote></div><br></div>
</blockquote><br><br>-- <br><br>Aaron Voisine<br><a href="http://breadwallet.com" target="_blank">breadwallet.com</a><br>