Automating transactions based off rule

+2 votes
Is it possible to automate a transfer of assets given a certain condition is met?

I.e. node A would like to send node B a token if it can return a cryptographic proof, but node B doesn't want to give this proof to node A unless it can guarantee that node A will return the token. I was thinking of using an exchange however, node A must verify that the cryptographic proof is correct before transferring the token to node B.

Is this possible when using multichain? Or alternatively ,would this be possible in a P2P network which utilises multichain simply for a transfer of assets whilst automating node behaviour?
asked Feb 23, 2018 by Jack Pickering

1 Answer

+1 vote
In general the way to achieve this would be to lock the token under the cryptographic proof, with a time release:

https://en.bitcoin.it/wiki/Hashed_Timelock_Contracts

Though I should add that we haven't yet tested this kind of mechanism with MultiChain.
answered Feb 25, 2018 by MultiChain
...