address

package
v0.1.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	TronBytePrefix = byte(0x41)
)

Variables

This section is empty.

Functions

func GenerateAddress added in v0.1.1

func GenerateAddress() (privateKey string, address string)

Types

type Address

type Address []byte

func Base58ToAddress

func Base58ToAddress(s string) (Address, error)

func BytesToAddress added in v0.1.2

func BytesToAddress(byte []byte) Address

func HexToAddress

func HexToAddress(s string) Address

func PubkeyToAddress added in v0.1.1

func PubkeyToAddress(p ecdsa.PublicKey) Address

func (Address) Bytes

func (a Address) Bytes() []byte

func (Address) Hex

func (a Address) Hex() string

func (Address) String

func (a Address) String() string

Jump to

Keyboard shortcuts

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