Rust SDK Costum Avalanche Virtual Machine
Rust SDK Costum Avalanche Virtual Machine, a new second SDK for building Avalanche Virtual Machines.
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.
Avalanche network is the blockchain industry’s quickest smart contracts platform digital asset. Avalanche is blazingly fast, low cost, and green. Any smart contract-enabled application can outperform its competition by deploying on Avalanche.