spacemeshos / svm

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

Implement Simple-Coin with Single Signature Template #449

Open YaronWittenstein opened 2 years ago

YaronWittenstein commented 2 years ago

Depends on: #440 #444 #448 #452

In order to test the Simple Coin Iteration #2, we need to write a Template that will test the new support for implementing Signatures Schemes.

Notes

Verify Implementation

  1. Get the Signature received at the sigdata of the transaction.
  2. Load the PubKey from the Account's Storage. (the PubKey stored in the ctor).
  3. Verify the Transaction (without the sigdata part) using the Signature (of 1.) and PubKey (of 2.)