Rust SDK Costum Avalanche Virtual Machine

Published on: 26.11.2022
Rust SDK Costum Avalanche Virtual Machine

Rust SDK Costum Avalanche Virtual Machine, a new second SDK for building Avalanche Virtual Machines.

The Rust SDK Costum Avalanche Virtual Machine as an alternative to using Golang, you can instead use Rust to launch your own blockchain on an Avalanche Subnet.

Primer: Building Your own Blockchain on Avalanche

To create your own blockchain on Avalanche, you need to first write your own Virtual Machine (VM). VMs define the logic that your blockchain will run and are capable of doing just about anything as long as it implements the Protocol Buffer (protobuf) interface exposed by AvalancheGo, which will communicate using this interface over gRPC.

gRPC and protobuf offer consistent object representations, boosting system understandability. This communication mechanism lets developers construct VMs in any language that supports gRPC and protobuf. They have SDKs for Golang and Rust but want to add more.

AvalancheGo is a plugin server client, and the virtual machine supports gRPC interfaces. Let’s take a look at an example in the `VM` service, initializing the VM:

Using the Rust SDK

Virtual machines in Golang use `hashicorp/go-plugin` as middleware to abstract the more menial aspects of plugin orchestration (logging, compatibility checks, etc.). The new Rust SDK implements boilerplate orchestration logic and offers VM and tool development libraries.

For example, `avalanche-ops` uses the Rust SDK to automate subnet installation on the cloud, and perform load tests using AWS KMS to sign transactions. The Rust SDK is published on crates.io.

About Avalanche

Website | Twitter

SOURCE: https://medium.com/avalancheavax/rust-vm-sdk-build-custom-virtual-machines-on-avalanche-using-rust-8334f2ae3c0b

Market Stats:
BTC Dominance: 41.67%(-0.39%/24h)
ETH Dominance: 18.72%(+0.08%/24h)
Defi Market Cap: $0B(-10.27%/24h)
Total Market Cap: $1079.03B(-0.03%/24h)
Total Trading Volume 24h: $54.86B(-9.97%/24h)
ETH Market Cap: $0B
Defi to ETH Ratio: 0%
Defi Dominance: 0%
Altcoin Market Cap: $629.35B
Altcoin Volume 24h: $29.23B
Total Cryptocurrencies: 22423
Active Cryptocurrencies: 8902
Active Market Pairs: 59125
Active Exchanges: 537
Total Exchanges: 4747