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: 57.33%(+0.72%/24h)
ETH Dominance: 12.53%(-0.30%/24h)
Defi Market Cap: $120.13B(+44.70%/24h)
Total Market Cap: $3482.05B(-4.26%/24h)
Total Trading Volume 24h: $270.79B(+41.48%/24h)
ETH Market Cap: $437.49B
Defi to ETH Ratio: 27.46%
Defi Dominance: 3.29%
Altcoin Market Cap: $1485.73B
Altcoin Volume 24h: $172.03B
Total Cryptocurrencies: 32912
Active Cryptocurrencies: 10429
Active Market Pairs: 94781
Active Exchanges: 771
Total Exchanges: 9749
BTC: 101006.12$(1.32%/1H)
ETH: 3627.03$(1.28%/1H)
AVAX: 41.49$(1.07%/1H)
BNB: 689.39$(1.04%/1H)
MATIC: 0.51$(1.74%/1H)
FTM: 1.1$(0.99%/1H)
ADA: 0.94$(1.66%/1H)
DOT: 7.41$(1.41%/1H)
UNI: 14.48$(0.13%/1H)
CAKE: 2.68$(0.89%/1H)
SUSHI: 1.64$(1.96%/1H)
ONE: 0.03$(1.48%/1H)