walletsdk

package
v0.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBlockchainUndefined = errors.New("blockchain undefined")

Functions

This section is empty.

Types

type BitcoinCashConfig

type BitcoinCashConfig struct {
	Network string
}

type BitcoinConfig

type BitcoinConfig struct {
	Network string
}

type Config

type Config struct {
	Bitcoin     BitcoinConfig
	Litecoin    LitecoinConfig
	BitcoinCash BitcoinCashConfig
	Dogecoin    DogecoinConfig
}

type DogecoinConfig

type DogecoinConfig struct {
	Network string
}

type GenerateAddress

type GenerateAddress struct {
	Address    string
	PublicKey  string
	PrivateKey string
}

type LitecoinConfig

type LitecoinConfig struct {
	Network string
}

type SDK

type SDK struct {
	BTC  *btc.WalletSDK
	LTC  *ltc.WalletSDK
	BCH  *bch.WalletSDK
	Doge *doge.WalletSDK
	Tron *tron.WalletSDK
	EVM  *evm.WalletSDK
}

func New

func New(conf Config) *SDK

func (*SDK) AddressPublic

func (s *SDK) AddressPublic(blockchain wconstants.BlockchainType, address string, mnemonic string, passphrase string, sequence uint32) (string, error)

func (*SDK) AddressSecret

func (s *SDK) AddressSecret(blockchain wconstants.BlockchainType, address string, mnemonic string, passphrase string, sequence uint32) (string, error)

func (*SDK) AddressWallet

func (s *SDK) AddressWallet(blockchain wconstants.BlockchainType, addressType string, mnemonic string, passphrase string, sequence uint32) (string, error)

func (*SDK) GenerateAddress

func (s *SDK) GenerateAddress(blockchain wconstants.BlockchainType, addressType string, mnemonic string, passphrase string, sequence uint32) (*GenerateAddress, error)

func (*SDK) ValidateAddress

func (s *SDK) ValidateAddress(blockchain wconstants.BlockchainType, address string) bool

Directories

Path Synopsis
evm

Jump to

Keyboard shortcuts

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