spacemeshos / svm

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

Implement host function: `svm_sig_verify` #451

Open YaronWittenstein opened 2 years ago

YaronWittenstein commented 2 years ago

This issue is about implementing a Digital Signatures verification host function. It's derived from the SVM Transactions Signatures .

The exact Crypto algorithms should be defined (see the needs research label).

fn svm_sig_verify(env: &FuncEnv, msg_start: i32, msg_end: i32, sig_start: i32, pub_key: i32) -> i32 {
  // The function returns a boolean (there is no `boolean` primitive for Wasm)
}

params