All shortsSurprise me
Play video: Unlocking unlimited smart contracts in CashScript!

Unlocking unlimited smart contracts in CashScript!

Watch on YouTube (opens in a new tab)
Space
Published
Length

Transcript

In CashScript, just earlier today, we made a new pre-release, but what we have had for a while now is a mocknet setup. So it's a setup where we use Libauth local transaction evaluation. So there is no real network involved. It's all locally evaluated in a JavaScript VM emulating the BCH virtual machine. At first that was only available for simple contracts. So only one contract, no complex contract interactions and also no different instances of the same contract. And now we have opened this up to our new transaction builder, which is a much better API. It works with adding inputs, and each input has an unlocker. So because this is a more generalized way to build transaction for UTXO blockchains, then you can combine any number of different smart contracts. So instances of the same contract but with different parameters, but also totally different contracts.