address

package
v0.0.0-...-8914a76 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package address provides functionality for parsing and manipulating Tron addresses.

Index

Constants

This section is empty.

Variables

View Source
var Zero = Address([21]byte{})

Functions

This section is empty.

Types

type Address

type Address [21]byte

Address is a public identifier for an account that exists on the Tron network.

func FromBase16

func FromBase16(str string) (Address, error)

FromBase16 parses a base 16 (hexadecimal) string into an address.

func FromBase58

func FromBase58(str string) (Address, error)

FromBase58 parses a base 58 checked string into an address.

func FromPublicKey

func FromPublicKey(pub *ecdsa.PublicKey) Address

func (Address) ToBase16

func (a Address) ToBase16() string

ToBase16 encodes the address into a base 16 string.

func (Address) ToBase58

func (a Address) ToBase58() string

ToBase58 encodes the address into a checked base 58 string.

func (*Address) UnmarshalJSON

func (a *Address) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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