Posts

Showing posts with the label howtolearnrustprogramminglanguage

Learning Rust for CosmWasm Smart Contracts: A Perfect Guide

Image
Terra network smart contracts are built on top of the CosmWasm template for smart contracts, which is derived from the Cosmos ecosystem. The programming language used for writing these kinds of contracts is Rust. So, learning Rust for CosmWasm smart contracts will be essential. In this article, we are going to get started with some of the basics of learning Rust programming language for CosmWasm smart contracts. Of course, this series of tutorials are not meant to teach you all the details about Rust, but enough for understanding CosmWasm smart contracts. What Are CosmWasm Smart Contracts? CosmWasm smart contracts are used by platforms like Cosmos, Terra, etc. In contrast to Solidity, they have some major distinctions like: 1. Avoiding the reentrancy of attacks 2. If you have read our articles on Solidity, you already know what safeMath is and why we use it (detecting overflow or underflows). In CosmWasm smart contracts , Rust allows you to simply set in th...