- Implement a set of predefined verification fuctions. These fuctions signature should be like this
fn(address, stdTx, ...parameters){
}
- Add a new transaction type. With the new transaction, each address can specify on what transaction, execute which verification functions and corresponding parameters:
|key | value | type |
|------------------------------------| -------------- |-----------|
|"func"+address+transactionType | function names |[]string |
|"param"+address+transactionType | parameter list |[][]string |
- In checkTx, iterate all Involved Addresses and do these operations:
- According to transaction type and address, get all function names which need to be executed and corresponding parameters.
- Execute each fuction with its corresponding parameters.
- Once a verification fuctions fails, all subsequent checks will be aborted, and the tx will be marked as failed.