2018-08-22 08:12:57 +00:00
|
|
|
package crypto
|
|
|
|
|
|
|
|
// Package crypto provides function signatures that can be used inside
|
2019-08-15 16:41:51 +00:00
|
|
|
// smart contracts that are written in the neo-go framework.
|
2018-08-22 08:12:57 +00:00
|
|
|
|
|
|
|
// SHA1 computes the sha1 hash of b.
|
|
|
|
func SHA1(b []byte) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
|
|
|
// SHA256 computes the sha256 hash of b.
|
|
|
|
func SHA256(b []byte) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-03-23 09:44:23 +00:00
|
|
|
// ECDsaVerify checks that sig is msg's signature with pub.
|
|
|
|
func ECDsaVerify(msg []byte, pub []byte, sig []byte) bool {
|
2020-01-22 15:24:58 +00:00
|
|
|
return false
|
|
|
|
}
|