mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-25 13:56:35 +00:00
519b31a704
All cryptography has moved to interops in NEO3. There is no SHA256 interop RN, but it is to appear later. Closes #777.
14 lines
372 B
Go
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
|
|
}
|