2020-04-14 14:24:21 +00:00
|
|
|
package crypto
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/interop"
|
2020-08-13 07:41:33 +00:00
|
|
|
"github.com/nspcc-dev/neo-go/pkg/core/interop/interopnames"
|
2020-04-14 14:24:21 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2021-05-11 14:13:33 +00:00
|
|
|
neoCryptoCheckMultisigID = interopnames.ToID([]byte(interopnames.SystemCryptoCheckMultisig))
|
2021-05-11 13:32:09 +00:00
|
|
|
neoCryptoCheckSigID = interopnames.ToID([]byte(interopnames.SystemCryptoCheckSig))
|
2020-04-14 14:24:21 +00:00
|
|
|
)
|
|
|
|
|
2021-05-11 14:40:03 +00:00
|
|
|
// Interops represents sorted crypto-related interop functions.
|
|
|
|
var Interops = []interop.Function{
|
2021-03-09 15:11:21 +00:00
|
|
|
{ID: neoCryptoCheckMultisigID, Func: ECDSASecp256r1CheckMultisig},
|
2021-03-04 17:56:54 +00:00
|
|
|
{ID: neoCryptoCheckSigID, Func: ECDSASecp256r1CheckSig},
|
2020-07-28 13:38:00 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
func init() {
|
2021-05-11 14:40:03 +00:00
|
|
|
interop.Sort(Interops)
|
2020-04-14 14:24:21 +00:00
|
|
|
}
|