compiler: add CheckMultisig interops

Part of #918
This commit is contained in:
Anna Shaleva 2020-07-14 12:09:26 +03:00
parent 4fafed8411
commit 063a7f683c
2 changed files with 16 additions and 2 deletions

View file

@ -6,8 +6,10 @@ var syscalls = map[string]map[string]string{
"Deserialize": "System.Binary.Deserialize", "Deserialize": "System.Binary.Deserialize",
}, },
"crypto": { "crypto": {
"ECDsaSecp256r1Verify": "Neo.Crypto.VerifyWithECDsaSecp256r1", "ECDsaSecp256r1Verify": "Neo.Crypto.VerifyWithECDsaSecp256r1",
"ECDsaSecp256k1Verify": "Neo.Crypto.VerifyWithECDsaSecp256k1", "ECDsaSecp256k1Verify": "Neo.Crypto.VerifyWithECDsaSecp256k1",
"ECDSASecp256r1CheckMultisig": "Neo.Crypto.CheckMultisigWithECDsaSecp256r1",
"ECDSASecp256k1CheckMultisig": "Neo.Crypto.CheckMultisigWithECDsaSecp256k1",
}, },
"enumerator": { "enumerator": {
"Concat": "System.Enumerator.Concat", "Concat": "System.Enumerator.Concat",

View file

@ -19,3 +19,15 @@ func ECDsaSecp256r1Verify(msg []byte, pub []byte, sig []byte) bool {
func ECDsaSecp256k1Verify(msg []byte, pub []byte, sig []byte) bool { func ECDsaSecp256k1Verify(msg []byte, pub []byte, sig []byte) bool {
return false return false
} }
// ECDSASecp256r1CheckMultisig checks multiple ECDSA signatures at once. It uses
// `Neo.Crypto.CheckMultisigWithECDsaSecp256r1` syscall.
func ECDSASecp256r1CheckMultisig(msg []byte, pubs [][]byte, sigs [][]byte) bool {
return false
}
// ECDSASecp256k1CheckMultisig checks multiple ECDSA signatures at once. It uses
// `Neo.Crypto.CheckMultisigWithECDsaSecp256k1` syscall.
func ECDSASecp256k1CheckMultisig(msg []byte, pubs [][]byte, sigs [][]byte) bool {
return false
}