address

package
v0.0.0-...-886a677 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: MIT Imports: 3 Imported by: 7

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

func StringToUint160(s string) (u util.Uint160, err error)

StringToUint160 attempts to decode the given NEO address string into a Uint160.

func Uint160ToString

func Uint160ToString(u util.Uint160) string

Uint160ToString returns the "NEO address" from the given Uint160.

Types

This section is empty.

Jump to

Keyboard shortcuts

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