The sCrypt Language Reference¶
sCrypt (pronounced “ess crypt”) is a high-level smart contract language for Bitcoin SV. Bitcoin supports smart contract with its Forth-like stack based Script language. However writing smart contract in native Script is cumbersome and error-prone. It quickly becomes intractable when the contract size and complexity grow.
sCrypt is designed to facilitate writing smart contract running on chain.
- It is easy to learn. Syntactically, sCrypt is similar to Solidity, making it easier to be adopted by existing smart contract developers. However, the resemblance is only superficial, since sCrypt is compiled into Bitcoin Script by the underlying compiler, instead of EVM bytecode.
- It is statically typed. Type checking can help detect many errors at compile time.
sCrypt is still in experimental phase and is currently only intended for small amount usage.