interop/util: extend documentation

This commit is contained in:
Roman Khimov 2020-05-18 18:57:22 +03:00
parent 85cc0639bb
commit 87e7e157ae

View file

@ -1,12 +1,19 @@
/*
Package util contains some special useful functions that are provided by compiler and VM.
*/
package util package util
// FromAddress is an utility function that converts an NEO address to its hash. // 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.
func FromAddress(address string) []byte { func FromAddress(address string) []byte {
return nil return nil
} }
// Equals compares a with b and will return true whether a and b // Equals compares a with b and will return true when a and b are equal. It's
// are equal. // implemented as an EQUAL VM opcode, so the rules of comparison are those
// of EQUAL.
func Equals(a, b interface{}) bool { func Equals(a, b interface{}) bool {
return false return false
} }