Minimal Exonum blockchain example implementing a simple runtime.
This example demonstrates the simplified version of Rust runtime, able to deploy and run services in the Exonum blockchain.
The heart of this example is the SampleRuntime
structure, which implements
exonum::Runtime
trait.
main
function contains the bootstrapping of the full Exonum node, which has
two runtimes:
- Rust runtime, full-fledged runtime for Rust services.
- Sample runtime, introduced by this example.
Later, a service is deployed and started for this Sample runtime, and several transactions are executed in this service to demonstrate the interaction process.
Enter the example folder in terminal and then run the following:
cargo run
Sample runtime is licensed under the Apache License (Version 2.0). See LICENSE for details.