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.

Warning

sCrypt is still in experimental phase and is currently only intended for small amount usage.

Introduction

Language Specification

sCrypt by Example

Contributing

See CONTRIBUTING.md at our GitHub for more information on what we’re looking for and how to get started.

Leave a Reply