Crypto Yack
Crypto Yack 5 minutes reading from Avalanche

Everything You Need to Know About the New Avalanche Sc SDK (for Dummies)

Do you want to build a blockchain but you only code on Rust?

With the introduction of the new Avalanche Rust SDK, more programmers can now quickly develop for Avalanche.

Here's everything you need to know about the new Avalanche Rust SDK (for dummies... like me!) 🧵


In this thread, I will not abstain from explaining the "obvious stuff" since I'm here to explain what this new Rust DSK provides for builders on Avalanche in a friendly way that everyone (whether you know programming or not) can understand.

I should also have to clarify that nerds are not allowed in this thread.

Please, nerds, abstain from typing.

- What does Rust SDK stand for?

Rust is a programming language that emphasizes performance and safety, and it fixes issues with concurrent programming and memory faults that C/C++ developers (nerds) have often struggled with.

SDK stands for: “Software Development Kit”, also known as "Devkit", which is a collection of software-development tools for a particular platform that includes building blocks, debuggers, and frequently a framework or a collection of code libraries.

With this second release of this SDK for building Avalanche Virtual Machines, users can launch their own blockchain on an Avalanche Subnet by using Rust.

Let's see what we can do with this update.

First, in order to create your own blockchain on Avalanche, you must write your own Virtual Machine (VM), because, of course, a VM defines how a blockchain should be built.

In this scenario, as long as your VM implements the Protocol Buffer (protobuf) interface made available by AvalancheGo, which will communicate using this interface over gRPC, your VM will be able to perform just about anything.

And what's all of that, you might ask

Let's start with... the Protocol Buffer.

A Protobuf is used for serializing data, similar to JSON or XML. The Protobuf, however, is not for humans; serialized data is compiled into bytes and is difficult for people to read.

AvalancheGo (formerly Gecko) is the official implementation of Avalanche in the Go programming language.

It includes a complete set of JSON-RPCs for communicating with Avalanche's virtual machine APIs.

Old tweet but:

Avalanche 🔺 on Twitter

A reliable RPC (Remote Procedure Call) framework used to create scalable and quick APIs is called gRPC.

It enables the development of networked systems and transparent communication between client and server applications.

Consistent object models are built by the use of both the Protobuf and the gRPC, which enhances the system's comprehension.

This communication model also allows developers to implement VMs in any language that supports gRPC and protobuf.

The new Avalanche Rust SDK provides a set of libraries that simplify VM and tool development in Rust.

To build a fully-featured VM, minimal VM implementations require only a few hundred lines of code and no stitching in other programming languages.

The Avalanche team is excited to keep improving the SDK and collaborating with the community on new blockchain designs.

If you're trying to learn how to build a VM by using Rust, this tutorial can help you out:

How to Build a Simple Rust VM | Avalanche Docs

Some items that can be useful for you:

avalanche - Rust

My source for this thread:

Rust VM SDK: Build Custom Virtual Machines on Avalanche using Rust
This post is based on this twitter thread.


Please login to comment.