forked from TrueCloudLab/neoneo-go
4ad29d0867
Also change the name of `VerifySignature` interop, to match syscall's name. It also accepts arguments in different order.
19 lines
453 B
Go
19 lines
453 B
Go
package crypto
|
|
|
|
// Package crypto provides function signatures that can be used inside
|
|
// smart contracts that are written in the neo-go framework.
|
|
|
|
// 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
|
|
}
|
|
|
|
// ECDsaVerify checks that sig is msg's signature with pub.
|
|
func ECDsaVerify(msg []byte, pub []byte, sig []byte) bool {
|
|
return false
|
|
}
|