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: 58.81%(-0.19%/24h)
ETH Dominance: 12.22%(-0.05%/24h)
Defi Market Cap: $87.11B(-17.90%/24h)
Total Market Cap: $3059.55B(+1.03%/24h)
Total Trading Volume 24h: $162.38B(-6.34%/24h)
ETH Market Cap: $374.3B
Defi to ETH Ratio: 23.27%
Defi Dominance: 2.73%
Altcoin Market Cap: $1260.37B
Altcoin Volume 24h: $107.1B
Total Cryptocurrencies: 32273
Active Cryptocurrencies: 10094
Active Market Pairs: 89717
Active Exchanges: 761
Total Exchanges: 9587
BTC: 90927.62$(1.38%/1H)
ETH: 3105.09$(1.03%/1H)
AVAX: 35.14$(1.94%/1H)
BNB: 621.27$(0.86%/1H)
MATIC: 0.42$(1.51%/1H)
FTM: 0.71$(1.74%/1H)
ADA: 0.74$(1.45%/1H)
DOT: 5.82$(2.06%/1H)
UNI: 9.06$(1.49%/1H)
CAKE: 1.93$(1.75%/1H)
SUSHI: 0.77$(1.46%/1H)
ONE: 0.01$(2.11%/1H)