address

package
v0.0.0-...-fa9a987 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2024 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultSubwalletId = 698983191

TON prescibes using this subwallet for importing compatibility

View Source
const DefaultWalletVersion = wallet.V3

Most stable TON wallet version

Variables

This section is empty.

Functions

func NewAddressBuilder

func NewAddressBuilder(cfgI xc.ITask) (xc.AddressBuilder, error)

NewAddressBuilder creates a new Template AddressBuilder

func Normalize

func Normalize(addressS string) (string, error)

func ParseAddress

func ParseAddress(addr xc.Address, net string) (*address.Address, error)

Types

type AddressBuilder

type AddressBuilder struct {
	Asset xc.ITask
}

AddressBuilder for Template

func (AddressBuilder) GetAddressFromPublicKey

func (ab AddressBuilder) GetAddressFromPublicKey(publicKeyBytes []byte) (xc.Address, error)

GetAddressFromPublicKey returns an Address given a public key

func (AddressBuilder) GetAllPossibleAddressesFromPublicKey

func (ab AddressBuilder) GetAllPossibleAddressesFromPublicKey(publicKeyBytes []byte) ([]xc.PossibleAddress, error)

GetAllPossibleAddressesFromPublicKey returns all PossubleAddress(es) given a public key

Jump to

Keyboard shortcuts

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