interop/crypto: allow ECDsaVerify to verify ScriptContainer

When verifying transaction or block, verification script can be
a simple PUSHNULL + SYSCALL, which means that script-encontaining
entity should be verified.
This commit is contained in:
Evgenii Stratonikov 2020-04-13 16:18:28 +03:00
parent 8f08065a8e
commit a92872931c
3 changed files with 13 additions and 1 deletions

View file

@ -6,6 +6,7 @@ import (
"github.com/nspcc-dev/neo-go/pkg/core/dao"
"github.com/nspcc-dev/neo-go/pkg/core/state"
"github.com/nspcc-dev/neo-go/pkg/core/transaction"
"github.com/nspcc-dev/neo-go/pkg/crypto"
"github.com/nspcc-dev/neo-go/pkg/smartcontract/trigger"
"github.com/nspcc-dev/neo-go/pkg/vm"
"go.uber.org/zap"
@ -14,6 +15,7 @@ import (
// Context represents context in which interops are executed.
type Context struct {
Chain blockchainer.Blockchainer
Container crypto.Verifiable
Trigger trigger.Type
Block *block.Block
Tx *transaction.Transaction