<p>Not directly, but you could do something similar by combining tx1 and tx2 into a single transaction.</p>
<p>So, instead of:</p>
<blockquote>
<p>tx1:</p>
<pre><code>Input         | Output
Alice (1 BTC) | Eve (1 BTC)
</code></pre>
<p>tx2:</p>
<pre><code>Input          | Output
Eve (0.99 BTC) | Bob (0.99 BTC)
</code></pre>
</blockquote>
<p>you could use:</p>
<blockquote>
<p>tx:</p>
<pre><code>Input          | Output
Alice (1 BTC)  | Eve (0.01 BTC)
               | Bob (0.99 BTC)
</code></pre>
</blockquote>
<p>This doesn't seem useful for the lightning network, because you really don't want to have a payment fail just because a settlement somewhere along the path failed.</p>

CC BY-SA 3.0
2015-05-06T09:00:03.230Z
You do though, I mean you want either complete failure or complete success. In case something along the chain fails then everyone can go back to their previous state (as these transactions haven't been published yet).
csiz
CC BY-SA 3.0
2015-05-06T09:03:59.287Z
Further question: Can you have input from 2 multisig addresses and it will only be valid once everyone signs it? For example input (Alice+Eve and Eve+Bob) will only become valid once all 3 of them sign it?
csiz
CC BY-SA 3.0
2015-05-05T23:50:07.120Z
2015-05-05T23:50:07.120Z
2020-06-16T11:10:03.350Z
Nick ODell
<p>I was thinking around <a href="http://lightning.network/" rel="nofollow">http://lightning.network/</a> .</p>

<p>My problem is Alice sending coins to Bob via Eve: <code>A -- tx1 -&gt; E -- tx2 -&gt; B</code></p>

<p>Is there a way to condition tx1 on Eve signing tx2?</p>

<transactions><script>
Can a transaction be conditioned on signing another transaction?
csiz
# Can a transaction be conditioned on signing another transaction?

(Asked by: username_0 on 2015-05-05)

I was thinking around <http://lightning.network/> .

My problem is Alice sending coins to Bob via Eve: `A -- tx1 -> E -- tx2 -> B`

Is there a way to condition tx1 on Eve signing tx2?

**Tags:** transactions, script


---

## 1 answers

### Answer by username_1 on 2015-05-05. Score: 1

Not directly, but you could do something similar by combining tx1 and tx2 into a single transaction.

So, instead of:

> tx1:
>
> ```
> Input         | Output
> Alice (1 BTC) | Eve (1 BTC)
>
> ```
>
> tx2:
>
> ```
> Input          | Output
> Eve (0.99 BTC) | Bob (0.99 BTC)
>
> ```

you could use:

> tx:
>
> ```
> Input          | Output
> Alice (1 BTC)  | Eve (0.01 BTC)
>                | Bob (0.99 BTC)
>
> ```

This doesn't seem useful for the lightning network, because you really don't want to have a payment fail just because a settlement somewhere along the path failed.

> **Comments:**
> **username_0**: You do though, I mean you want either complete failure or complete success. In case something along the chain fails then everyone can go back to their previous state (as these transactions haven't been published yet).  
> **username_0**: Further question: Can you have input from 2 multisig addresses and it will only be valid once everyone signs it? For example input (Alice+Eve and Eve+Bob) will only become valid once all 3 of them sign it?  

---

