compiler: emit Neo.Crypto.ECDsaVerify syscall instead of CHECKSIG

Also change the name of `VerifySignature` interop, to match
syscall's name. It also accepts arguments in different order.
This commit is contained in:
Evgenii Stratonikov 2020-03-23 12:44:23 +03:00
parent 948729137f
commit 4ad29d0867
5 changed files with 20 additions and 15 deletions

View file

@ -1063,8 +1063,6 @@ func (c *codegen) convertBuiltin(expr *ast.CallExpr) {
emit.Opcode(c.prog.BinWriter, opcode.SHA256)
case "SHA1":
emit.Opcode(c.prog.BinWriter, opcode.SHA1)
case "VerifySignature":
emit.Opcode(c.prog.BinWriter, opcode.VERIFY)
case "AppCall":
numArgs := len(expr.Args) - 1
c.emitReverse(numArgs)