CashAssembly—WebAssembly for Bitcoin Cash

At 30:04 @TobiasRuck outlines CashAssembly, which is WebAssembly for Bitcoin Cash.

  • Translate Script to WebAssembly which can be compiled to machine code. Makes sense for big scripts which are called very frequently as they'll be executed blazingly fast. This could be useful for adding new cryptographic primitives such as ZKSnarks and/or Halo w/out changing consensus all the time.
  • Can convert WebAssembly to Script. We can write contracts in higher level language, imagine CashScript but amped up, then use powerful tools, like LLVM, to compile to webassembly, which we then compile to script.

We can use existing optimization and debugging tools. Increased safety and convenience for devs. Increased performance for contracts. Attract more smart-contract developers and much more.

I think Nimbus is a really exciting idea and even if we don't go down that path IMO this is the type of innovative thinking which we need to foster for Bitcoin Cash to remain competitive. Kudos to Tobias! 🎩

More info: https://www.youtube.com/watch?time_continue=905&v=vI2JecWwYiA

submitted by /u/cgcardona
[link] [comments]

source https://www.reddit.com/r/btc/comments/d5ql9p/cashassemblywebassembly_for_bitcoin_cash/

Comments