svm
svm copied to clipboard
SVM - Spacemesh Virtual Machine
Here is an example of how it could look like: ```rust use svm_sdk_mock::template; #[template] mod Template { #[storage] struct Storage { #[immutable] pub_keys: [svm_sdk::Blob32; 3], started: bool, #[immutable] master_key: svm_sdk::Blob64,...
To simplify significantly the implementation of the `Immutable Storage`, I suggest enforcing these rules upon each Template: * Each Template must have `Storage Layout Section #0`. Its usage is to...
Depends on: #447 Add to the `Spawn Transaction` a new field named `immutable_data`. This field won't hold some ABI data as in `verifydata/ctordata/funcdata` etc, but it'll hold the `Storage Variables`...
The `Self Spawn` requires coming up with an `Account Address` computation that will: * Deterministic - it goes without saying * Spacemesh layer independent - it's highly recommended to compute...
Depends on: #467 As detailed in the [SVM Self-Spawn SMIP](https://github.com/spacemeshos/SMIPS/issues/64), we want to add a new flow of Accounts Spawning - the `Self-Spawn.` There are two main stages: * Creating...
This issue is preparation work for the `Self-Spawn.` We want SVM to support having an `Account` in a `Pending State` (i.e., inactive). That `Account` won't have any `Template` attached to...
As per title. Would immensely help newcomers and technical users.
Depends on #449 See also: [SVM Transactions Signatures](https://github.com/spacemeshos/SMIPS/issues/72) Writing this Template should be very similar to the one at #449. The `Template Storage` will consist of 3 Public Keys that...
Depends on: #438 1. Extend the `Storage` trait here: https://github.com/spacemeshos/svm/blob/master/crates/sdk-storage/src/lib.rs to have `load256 / store256` and `load512 / store512` 2. Implement under `lib.rs`: ```rust pub fn load256(var_id: u32) -> svm_sdk_types::Blob32...
Add `get256 / set256` and `get512 / set512` host functions to the current ones here: https://github.com/spacemeshos/svm/blob/master/crates/runtime/src/vmcalls/storage.rs