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: 53.74%(-0.46%/24h)
ETH Dominance: 16.03%(+0.05%/24h)
Defi Market Cap: $83.85B(-4.23%/24h)
Total Market Cap: $2249.45B(-3.57%/24h)
Total Trading Volume 24h: $97.41B(+1.87%/24h)
ETH Market Cap: $360.24B
Defi to ETH Ratio: 23.28%
Defi Dominance: 3.56%
Altcoin Market Cap: $1040.51B
Altcoin Volume 24h: $55.38B
Total Cryptocurrencies: 29241
Active Cryptocurrencies: 9702
Active Market Pairs: 81462
Active Exchanges: 752
Total Exchanges: 8342
BTC: 61468.94$(-0.76%/1H)
ETH: 3002.76$(-0.89%/1H)
AVAX: 34.55$(-0.01%/1H)
BNB: 547.44$(-1.06%/1H)
MATIC: 0.68$(-0.43%/1H)
FTM: 0.66$(-1.68%/1H)
ADA: 0.45$(-0.41%/1H)
DOT: 6.67$(-0.31%/1H)
UNI: 7.05$(-0.81%/1H)
CAKE: 2.72$(-0.97%/1H)
SUSHI: 0.97$(-1.09%/1H)
ONE: 0.02$(-0.59%/1H)