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