BitShares Forum

Main => General Discussion => Topic started by: betax on March 17, 2016, 02:32:42 pm

Title: Bitshares VM (BVM) interoperability with Solidity, Web3 etc.
Post by: betax on March 17, 2016, 02:32:42 pm
Hi,

Quick question, and most probably I got the wrong end of the stick so bear with me. If the plan is to create a BVM (or GVM or Plasma?), as per the mumble chat. Will this work the same as the EVM (or similarly).. So for example, will contracts have the same bytecode and could be compiled the same way? Will transactions will have the same parameter encoding / decoding?
Title: Re: Bitshares VM (BVM) interoperability with Solidity, Web3 etc.
Post by: bytemaster on March 17, 2016, 03:03:45 pm
It would be as close as humanly possible to make migrating apps easy and to leverage all of their powerful dev tools.

There would be some BTS specific extensions that would give the EVM access to BTS state.  Likewise, there would be some state info from ETH that would not be exposed (such as mining difficulty).

So any smart contract that doesn't care about the chain it is running on should be fine.

It is kind of like targeting windows vs mac vs linux.  So long as you don't call OS specific system calls your app will be cross platform.
Title: Re: Bitshares VM (BVM) interoperability with Solidity, Web3 etc.
Post by: betax on March 17, 2016, 03:32:26 pm
Got you, so for example if BTS Assets can be accessed using the standard ERC20 contract, the migration can be simplified.