<oembed><type>rich</type><version>1.0</version><author_name>npub1xvnnyhz8e4eklaakjc9xgm5w8pzkuckt923uacz2cftqdqx23g7q3c5rqg</author_name><author_url>https://nostr.ae/npub1xvnnyhz8e4eklaakjc9xgm5w8pzkuckt923uacz2cftqdqx23g7q3c5rqg</author_url><provider_name>njump</provider_name><provider_url>https://nostr.ae</provider_url><html>📅 Original date posted:2013-11-02&#xA;📝 Original message:This was one of my concerns when implementing a scheme where you sign a&#xA;refund transaction before the original transaction is broadcast.  I&#xA;originally tried to pass a hash and have the server sign it.  However, I&#xA;had no way to know that what I was signing wasn&#39;t a transaction that was&#xA;spending my coins!  So I changed the code to require sending the full&#xA;transaction, not just the hash.  The other way to mitigate this is through&#xA;not having any unspent outputs from this key.&#xA;&#xA;For authentication, you could have both a user-generated and&#xA;server-generated portion, so that you signed something that clearly had&#xA;data from you, so even if the server-data was a hash of $EVIL_DOCUMENT, you&#xA;have clear plausible deniability in that your data that is also signed is&#xA;&#34;ATTEMPTING LOGIN TO XYZ.COM Hash($EVIL_DOCUMENT)&#34;.&#xA;&#xA;&#xA;On Sat, Nov 2, 2013 at 4:51 PM, Mark Friedenbach &lt;mark at monetize.io&gt; wrote:&#xA;&#xA;&gt; -----BEGIN PGP SIGNED MESSAGE-----&#xA;&gt; Hash: SHA1&#xA;&gt;&#xA;&gt; Or SIGHASH of a transaction spending those coins or updating the SIN...&#xA;&gt;&#xA;&gt; On 11/2/13 2:14 PM, Johnathan Corgan wrote:&gt; On 11/01/2013 10:01 PM,&#xA;&gt; bitcoingrant at gmx.com wrote:&#xA;&gt; &gt;&#xA;&gt; &gt;&gt; Server provides a token for the client to sign.&#xA;&gt; &gt;&#xA;&gt; &gt; Anyone else concerned about signing an arbitrary string?  Could be&#xA;&gt; &gt; a hash of $EVIL_DOCUMENT, no?  I&#39;d want to XOR the string with my&#xA;&gt; &gt; own randomly generated nonce, sign that, then pass the nonce and&#xA;&gt; &gt; the signature back to the server for verification.&#xA;&gt; &gt;&#xA;&gt; -----BEGIN PGP SIGNATURE-----&#xA;&gt; Version: GnuPG/MacGPG2 v2.0.19 (Darwin)&#xA;&gt; Comment: GPGTools - http://gpgtools.org&#xA;&gt; Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/&#xA;&gt;&#xA;&gt; iQIcBAEBAgAGBQJSdXPaAAoJEAdzVfsmodw4+m8P/1Ce/PwZOYfiFuFJ8pmT2tb2&#xA;&gt; ro7tw7zSr12RSTvs+qRl7lDzJzQ6BDXOdXZCkcU0Vj3TDm8fdrrXN/iw3iQYU/5Y&#xA;&gt; 3K7hj2mGqQUMovCLw0CbrMWrMvor7FhO6MZsRwe0+VxDV/dDrX5f5vSEhnkR26be&#xA;&gt; NrzOFU4hqGM3R4eLq8Bmw5rVD/VCrRzKoXXAvJb1EwM1+fQPjKi+bNMJu3reyfXU&#xA;&gt; 5eMbbiM6tUMmPXy9M6vZrN+6ad53x3KUVP6+/hXxsrnfPp57WQzRZlvwTo/qdJ1C&#xA;&gt; Oxl71m6o2zkXbLTFmg1xmK/A4V1BPTLD6nLDIsw+wTBBfdn22pfDv6Q8d3VRctrd&#xA;&gt; 6x+PMkwysoMjhemmkXCY/7G9GD6AGsrYSqIShSULd9QO5WxAFzRO01ewiRUCUFHi&#xA;&gt; Dn0LEjy8/R/CWK3jvj9uL3vQh9DLdOtqf/X7cEtjF3LThVP+stFTsmXObhTh/8Ai&#xA;&gt; YYjpnwOFG5ZtDzRZfP3OCwyhqlsaMlNgN4xnyR4GPaoJRP3a0zllblIbTWzg6nhY&#xA;&gt; jbON5Ec9N9txGhagYOoAvcQYqGyJdffkBzW82CRUsFYuYYmW2oLUQXPhAGDBIzzj&#xA;&gt; g/7RjMlM1OEp3qctxMZQlrTj7VJmhD768PRLh2XvEDmEC5Qb8Tcq28Nq5t85/O/6&#xA;&gt; i3+pzT5rMuiIZWLx7Msv&#xA;&gt; =tAUY&#xA;&gt; -----END PGP SIGNATURE-----&#xA;&gt;&#xA;&gt;&#xA;&gt; ------------------------------------------------------------------------------&#xA;&gt; Android is increasing in popularity, but the open development platform that&#xA;&gt; developers love is also attractive to malware creators. Download this white&#xA;&gt; paper to learn more about secure code signing practices that can help keep&#xA;&gt; Android apps secure.&#xA;&gt; http://pubads.g.doubleclick.net/gampad/clk?id=65839951&amp;iu=/4140/ostg.clktrk&#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;&#xA;-------------- next part --------------&#xA;An HTML attachment was scrubbed...&#xA;URL: &lt;http://lists.linuxfoundation.org/pipermail/bitcoin-dev/attachments/20131102/4ee1c42f/attachment.html&gt;</html></oembed>