<p>Perhaps I missing something obvious about the definition of coloured coins, but this appears to be very simple. Just create a transaction that transfers 300 coins and have an unsigned input connected to the coloured output. send to the owner of the coloured output, they sign it and broadcast.</p>

<div class="gmail_quote">On Sep 22, 2012 11:10 AM, &quot;Jorge Timón&quot; &lt;<a href="mailto:timon.elviejo@gmail.com">timon.elviejo@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I&#39;m very interested in this. I was expecting transitive/multi-hop<br>
transactions (Ripple) with colored coins, and I don&#39;t understand why<br>
is not possible.<br>
<br>
&gt;From <a href="https://en.bitcoin.it/wiki/Contracts" target="_blank">https://en.bitcoin.it/wiki/Contracts</a><br>
<br>
---<br>
SIGHASH_ALL: This is the default. It indicates that everything about<br>
the transaction is signed, except for the input scripts. Signing the<br>
input scripts as well would obviously make it impossible to construct<br>
a transaction, so they are always blanked out. Note, though, that<br>
other properties of the input, like the connected output and sequence<br>
numbers, are signed; it&#39;s only the scripts that are not. Intuitively,<br>
it means &quot;I agree to put my money in, if everyone puts their money in<br>
and the outputs are this&quot;.<br>
---<br>
<br>
Why &quot;Signing the input scripts as well would obviously make it<br>
impossible to construct a transaction&quot;?<br>
I don&#39;t understand that part. I think a new SIGHASH_* type that<br>
doesn&#39;t pay attention to that &quot;obviously&quot; is needed to achieve what we<br>
want.<br>
<br>
Say we want the following transaction:<br>
<br>
A 1 satoshi -&gt; B 1 satoshi -&gt; C 100 btc -&gt; A<br>
<br>
It would be necessary to sign the following:<br>
<br>
Inputs: from srcA, from srcB,<br>
Outputs: 1 satoshi to destB, 1 satoshi to destC, 100 btc to destA<br>
<br>
&quot;from srcC&quot; is not really necessary.<br>
<br>
This same scheme can be used for n-hops.<br>
<br>
What am I missing?<br>
<br>
On 9/22/12, Jeff Garzik &lt;<a href="mailto:jgarzik@exmulti.com">jgarzik@exmulti.com</a>&gt; wrote:<br>
&gt; Forum URL: <a href="https://bitcointalk.org/index.php?topic=112007.0" target="_blank">https://bitcointalk.org/index.php?topic=112007.0</a><br>
&gt;<br>
&gt; gmaxwell was talking about colored coins[1] in IRC recently.  They are<br>
&gt; potentially interesting in the context of distributed bonds[2], which<br>
&gt; I am currently pursuing with pybond[3].<br>
&gt;<br>
&gt; Here is the problem I am trying to solve, does the crowd have an answer?<br>
&gt;<br>
&gt; 1. Alice transfers a 1-satoshi colored coin to Bob.<br>
&gt; 2. Bob transfers 100 BTC to Alice.  May be restricted to 1 txout, if<br>
&gt; that eases implementation details.<br>
&gt; 3. Steps #1 and #2 happen as an atomic unit, all-or-none.<br>
&gt; 4. Alice and Bob must both approve this atomic transfer of coins, with<br>
&gt; appropriate signatures.<br>
&gt;<br>
&gt; Is this possible within the current bitcoin system?  As far as I can<br>
&gt; see, the answer is &quot;no&quot; but maybe I&#39;m missing something.<br>
&gt;<br>
&gt; My best guess to the answer is &quot;possible, but requires a new SIGHASH_*<br>
&gt; type&quot;?<br>
&gt;<br>
&gt; [1] <a href="https://bitcointalk.org/index.php?topic=106449.0" target="_blank">https://bitcointalk.org/index.php?topic=106449.0</a><br>
&gt; [2] <a href="https://bitcointalk.org/index.php?topic=92421.0" target="_blank">https://bitcointalk.org/index.php?topic=92421.0</a><br>
&gt; [3] <a href="https://github.com/jgarzik/pybond" target="_blank">https://github.com/jgarzik/pybond</a><br>
&gt;<br>
&gt; --<br>
&gt; Jeff Garzik<br>
&gt; exMULTI, Inc.<br>
&gt; <a href="mailto:jgarzik@exmulti.com">jgarzik@exmulti.com</a><br>
&gt;<br>
&gt; ------------------------------------------------------------------------------<br>
&gt; How fast is your code?<br>
&gt; 3 out of 4 devs don\\\&#39;t know how their code performs in production.<br>
&gt; Find out how slow your code is with AppDynamics Lite.<br>
&gt; <a href="http://ad.doubleclick.net/clk;262219672;13503038;z" target="_blank">http://ad.doubleclick.net/clk;262219672;13503038;z</a>?<br>
&gt; <a href="http://info.appdynamics.com/FreeJavaPerformanceDownload.html" target="_blank">http://info.appdynamics.com/FreeJavaPerformanceDownload.html</a><br>
&gt; _______________________________________________<br>
&gt; Bitcoin-development mailing list<br>
&gt; <a href="mailto:Bitcoin-development@lists.sourceforge.net">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>
--<br>
Jorge Timón<br>
<br>
------------------------------------------------------------------------------<br>
How fast is your code?<br>
3 out of 4 devs don\\\&#39;t know how their code performs in production.<br>
Find out how slow your code is with AppDynamics Lite.<br>
<a href="http://ad.doubleclick.net/clk;262219672;13503038;z" target="_blank">http://ad.doubleclick.net/clk;262219672;13503038;z</a>?<br>
<a href="http://info.appdynamics.com/FreeJavaPerformanceDownload.html" target="_blank">http://info.appdynamics.com/FreeJavaPerformanceDownload.html</a><br>
_______________________________________________<br>
Bitcoin-development mailing list<br>
<a href="mailto:Bitcoin-development@lists.sourceforge.net">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>
</blockquote></div>