2020-05-18 07:58:27 +00:00
|
|
|
/*
|
|
|
|
Package crypto provides an interface to cryptographic syscalls.
|
|
|
|
*/
|
2018-08-22 08:12:57 +00:00
|
|
|
package crypto
|
|
|
|
|
2020-05-18 07:58:27 +00:00
|
|
|
// SHA256 computes SHA256 hash of b. It uses `Neo.Crypto.SHA256` syscall.
|
2018-08-22 08:12:57 +00:00
|
|
|
func SHA256(b []byte) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-18 07:58:27 +00:00
|
|
|
// ECDsaVerify checks that sig is correct msg's signature for a given pub
|
|
|
|
// (serialized public key). It uses `Neo.Crypto.ECDsaVerify` syscall.
|
2020-03-23 09:44:23 +00:00
|
|
|
func ECDsaVerify(msg []byte, pub []byte, sig []byte) bool {
|
2020-01-22 15:24:58 +00:00
|
|
|
return false
|
|
|
|
}
|