forked from TrueCloudLab/neoneo-go
9015e50847
Rename it to Neo.Crypto.CheckMultisig and remove `message` parameter.
25 lines
672 B
Go
25 lines
672 B
Go
package crypto
|
|
|
|
import (
|
|
"github.com/nspcc-dev/neo-go/pkg/core/interop"
|
|
"github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames"
|
|
)
|
|
|
|
var (
|
|
neoCryptoCheckMultisigID = interopnames.ToID([]byte(interopnames.NeoCryptoCheckMultisig))
|
|
neoCryptoCheckSigID = interopnames.ToID([]byte(interopnames.NeoCryptoCheckSig))
|
|
)
|
|
|
|
var cryptoInterops = []interop.Function{
|
|
{ID: neoCryptoCheckMultisigID, Func: ECDSASecp256r1CheckMultisig},
|
|
{ID: neoCryptoCheckSigID, Func: ECDSASecp256r1CheckSig},
|
|
}
|
|
|
|
func init() {
|
|
interop.Sort(cryptoInterops)
|
|
}
|
|
|
|
// Register adds crypto interops to ic.
|
|
func Register(ic *interop.Context) {
|
|
ic.Functions = append(ic.Functions, cryptoInterops)
|
|
}
|