Documentation ¶
Overview ¶
Package address implements conversion of a script hash to/from a Neo address.
Index ¶
Constants ¶
View Source
const ( // NEO2Prefix is the first byte of an address for NEO2. NEO2Prefix byte = 0x17 // NEO3Prefix is the first byte of an address for NEO3. NEO3Prefix byte = 0x35 )
Variables ¶
View Source
var Prefix = NEO3Prefix
Prefix is the byte used to prepend to addresses when encoding them, it can be changed and defaults to 53 (0x35), the standard NEO prefix.
Functions ¶
func StringToUint160 ¶
StringToUint160 attempts to decode the given NEO address string into a Uint160.
func Uint160ToString ¶
Uint160ToString returns the "NEO address" from the given Uint160.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.