spacemeshos / svm

SVM - Spacemesh Virtual Machine
https://spacemesh.io
MIT License
85 stars 14 forks source link

Extend SDK with non-default `verify` implementation #448

Open YaronWittenstein opened 2 years ago

YaronWittenstein commented 2 years ago

Right now, the SDK generates this verify code (svm_verify if to be precise)

 #[no_mangle]
pub extern "C" fn svm_verify() -> u32 {
    0
}

https://github.com/spacemeshos/svm/blob/6edb73de199fafce0953f82af061ca1090ff911c/crates/sdk-macros/src/template.rs#L299-L311

The Simple Coin Iteration #2 is about being able to implement meaningful verify that will implement algorithms such as Single-Sig or MultiSig.