neoneo-go/pkg/interop/crypto/crypto.go
Evgenii Stratonikov 519b31a704 vm: remove crypto-related opcodes
All cryptography has moved to interops in NEO3.
There is no SHA256 interop RN, but it is to appear later.
Closes #777.
2020-04-29 19:16:38 +03:00

14 lines
372 B
Go

package crypto
// Package crypto provides function signatures that can be used inside
// smart contracts that are written in the neo-go framework.
// SHA256 computes the sha256 hash of b.
func SHA256(b []byte) []byte {
return nil
}
// ECDsaVerify checks that sig is msg's signature with pub.
func ECDsaVerify(msg []byte, pub []byte, sig []byte) bool {
return false
}