Using Bitcoin Script to implement Smart Contract on Multichain

+2 votes

Bitcoin uses Script,lock_time and signature checking to form distributed contracts( smart contrcts). https://en.bitcoin.it/wiki/Contract and https://bitcoin.org/en/developer-guide#contracts

I think Multichain can go the same way. 

In the Multichain APIs, I only see the Atomic Transaction protocol.

What bothers me now is how to operate  Script (OP_CODE), native assets and streams at the same time. But, they are special functions on Multichain platform and they don't seem to be on the same level with "the inputs/outputs of the transction".

Can you give me some suggestions?

Thanks

Allainzhang

 

 

asked Jun 21, 2017 by allainzhang2018

1 Answer

+1 vote

You can certainly use more complex output scripts with MultiChain. Just as with Bitcoin Core, you would need to build these raw transactions yourself since MultiChain doesn't expose an API for doing so. Any MultiChain-specific extensions to bitcoin's functionality use opcodes that don't interfere with the script processing logic (either OP_DROP inside an output or OP_RETURN for a metadata-only output).

answered Jun 21, 2017 by MultiChain
...