address

package
v0.0.0-...-dc6c195 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2024 License: MIT Imports: 3 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromHash160

func FromHash160(hash interop.Hash160) string

FromHash160 is a utility function that converts given Hash160 to Base58-encoded Neo address.

func ToHash160

func ToHash160(address string) interop.Hash160

ToHash160 is a utility function that converts a Neo address to its hash (160 bit BE value in a 20 byte slice). When parameter is known at compile time (it's a constant string) the output is calculated by the compiler and this function is optimized out completely. Otherwise, standard library and system calls are used to perform the conversion and checks (panic will happen on invalid input).

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL