2020-05-18 15:57:22 +00:00
|
|
|
/*
|
|
|
|
Package util contains some special useful functions that are provided by compiler and VM.
|
|
|
|
*/
|
2018-08-20 08:59:35 +00:00
|
|
|
package util
|
|
|
|
|
2020-05-18 15:57:22 +00:00
|
|
|
// FromAddress is an utility function that converts a Neo address to its hash
|
|
|
|
// (160 bit BE value in a 20 byte slice). It can only be used for strings known
|
|
|
|
// at compilation time, because the convertion is actually being done by the
|
|
|
|
// compiler.
|
2018-08-20 08:59:35 +00:00
|
|
|
func FromAddress(address string) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
2018-08-23 08:17:42 +00:00
|
|
|
|
2020-05-18 15:57:22 +00:00
|
|
|
// Equals compares a with b and will return true when a and b are equal. It's
|
|
|
|
// implemented as an EQUAL VM opcode, so the rules of comparison are those
|
|
|
|
// of EQUAL.
|
2018-08-23 17:44:17 +00:00
|
|
|
func Equals(a, b interface{}) bool {
|
2018-08-23 08:17:42 +00:00
|
|
|
return false
|
|
|
|
}
|