acc

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SubstrateNetworkEnumForDOT          string = substrate.NetworkEnumForDOT
	SubstrateNetworkEnumForKSM          string = substrate.NetworkEnumForKSM
	SubstrateNetworkEnumForASTR         string = substrate.NetworkEnumForASTR
	SubstrateNetworkEnumForACA          string = substrate.NetworkEnumForACA
	SubstrateNetworkEnumForAZERO        string = substrate.NetworkEnumForAZERO
	SubstrateNetworkEnumForTAO          string = substrate.NetworkEnumForTAO
	SubstrateNetworkEnumForDOTASSETSHUB string = substrate.NetworkEnumForDOTASSETSHUB
)
View Source
const (
	UtxoNetworkEnumForBTC     string = utxo.NetworkEnumForBTC
	UtxoNetworkEnumForLTC     string = utxo.NetworkEnumForLTC
	UtxoNetworkEnumForDOGE    string = utxo.NetworkEnumForDOGE
	UtxoNetworkEnumForBTCP2TR string = utxo.NetworkEnumForBTCP2TR
	UtxoNetworkEnumForSYS     string = utxo.NetworkEnumForSYS
)

Variables

This section is empty.

Functions

func GenerateMnemonic

func GenerateMnemonic() (string, error)

func PrivateKeyHexToWIF

func PrivateKeyHexToWIF(privateKey string) (string, error)

func PrivateKeyWIFToHex

func PrivateKeyWIFToHex(privateKey string) (string, error)

func ReadFromKeyStore

func ReadFromKeyStore(ksString, password string, isMn bool) (string, error)

func ValidAddress

func ValidAddress(address string, family int, network string) bool

func WriteToKeyStore

func WriteToKeyStore(name, text, password string, isMn bool) (string, error)

Types

type AlgorandAccount added in v0.12.1

type AlgorandAccount struct {
	// contains filtered or unexported fields
}

func NewAlgorandFromMnemonic added in v0.12.1

func NewAlgorandFromMnemonic(mnemonic, path string) (*AlgorandAccount, error)

func (*AlgorandAccount) Address added in v0.12.1

func (a *AlgorandAccount) Address() string

func (*AlgorandAccount) PrivateKey added in v0.12.1

func (a *AlgorandAccount) PrivateKey() []byte

func (*AlgorandAccount) PublicKey added in v0.12.1

func (a *AlgorandAccount) PublicKey() []byte

func (*AlgorandAccount) Wipe added in v0.12.1

func (a *AlgorandAccount) Wipe()

type AptAccount

type AptAccount struct {
	// contains filtered or unexported fields
}

func NewAptFromMnemonic

func NewAptFromMnemonic(mnemonic, path string) (*AptAccount, error)

func (*AptAccount) Address

func (a *AptAccount) Address() string

func (*AptAccount) PrivateKey

func (a *AptAccount) PrivateKey() []byte

func (*AptAccount) PublicKey

func (a *AptAccount) PublicKey() []byte

func (*AptAccount) PublicKeyHex

func (a *AptAccount) PublicKeyHex() string

func (*AptAccount) Wipe

func (a *AptAccount) Wipe()

type CosmosAccount added in v0.12.1

type CosmosAccount struct {
	// contains filtered or unexported fields
}

func NewCosmosFromMnemonic added in v0.12.1

func NewCosmosFromMnemonic(mnemonic, path, network string) (*CosmosAccount, error)

func (*CosmosAccount) Address added in v0.12.1

func (a *CosmosAccount) Address() string

func (*CosmosAccount) PrivateKey added in v0.12.1

func (a *CosmosAccount) PrivateKey() []byte

func (*CosmosAccount) PublicKey added in v0.12.1

func (a *CosmosAccount) PublicKey() []byte

func (*CosmosAccount) Wipe added in v0.12.1

func (a *CosmosAccount) Wipe()

type EgldAccount

type EgldAccount struct {
	// contains filtered or unexported fields
}

func NewEgldFromMnemonic

func NewEgldFromMnemonic(mnemonic, path string) (*EgldAccount, error)

func (*EgldAccount) Address

func (a *EgldAccount) Address() string

func (*EgldAccount) PrivateKey

func (a *EgldAccount) PrivateKey() []byte

func (*EgldAccount) PublicKey

func (a *EgldAccount) PublicKey() []byte

func (*EgldAccount) PublicKeyHex

func (a *EgldAccount) PublicKeyHex() string

func (*EgldAccount) Wipe

func (a *EgldAccount) Wipe()

type EvmAccount

type EvmAccount struct {
	// contains filtered or unexported fields
}

func NewEvmFromMnemonic

func NewEvmFromMnemonic(mnemonic, path string) (*EvmAccount, error)

func (*EvmAccount) Address

func (a *EvmAccount) Address() string

func (*EvmAccount) PrivateKey

func (a *EvmAccount) PrivateKey() []byte

func (*EvmAccount) PublicKey

func (a *EvmAccount) PublicKey() []byte

func (*EvmAccount) SignTypedDataJSON

func (a *EvmAccount) SignTypedDataJSON(typedDataJSON string) (string, error)

func (*EvmAccount) Wipe

func (a *EvmAccount) Wipe()

type FilecoinAccount added in v0.12.1

type FilecoinAccount struct {
	// contains filtered or unexported fields
}

func NewFilecoinFromMnemonic added in v0.12.1

func NewFilecoinFromMnemonic(mnemonic, path string) (*FilecoinAccount, error)

func (*FilecoinAccount) Address added in v0.12.1

func (a *FilecoinAccount) Address() string

func (*FilecoinAccount) PrivateKey added in v0.12.1

func (a *FilecoinAccount) PrivateKey() []byte

func (*FilecoinAccount) PublicKey added in v0.12.1

func (a *FilecoinAccount) PublicKey() []byte

func (*FilecoinAccount) Wipe added in v0.12.1

func (a *FilecoinAccount) Wipe()

type KasAccount

type KasAccount struct {
	// contains filtered or unexported fields
}

func NewKasFromMnemonic

func NewKasFromMnemonic(mnemonic, path string) (*KasAccount, error)

func (*KasAccount) Address

func (a *KasAccount) Address() string

func (*KasAccount) PrivateKey

func (a *KasAccount) PrivateKey() []byte

func (*KasAccount) PublicKey

func (a *KasAccount) PublicKey() []byte

func (*KasAccount) Wipe

func (a *KasAccount) Wipe()

type NearAccount added in v0.12.1

type NearAccount struct {
	// contains filtered or unexported fields
}

func NewNearFromMnemonic added in v0.12.1

func NewNearFromMnemonic(mnemonic, path string) (*NearAccount, error)

func (*NearAccount) Address added in v0.12.1

func (a *NearAccount) Address() string

func (*NearAccount) PrivateKey added in v0.12.1

func (a *NearAccount) PrivateKey() []byte

func (*NearAccount) PublicKey added in v0.12.1

func (a *NearAccount) PublicKey() []byte

func (*NearAccount) PublicKeyBase58 added in v0.12.1

func (a *NearAccount) PublicKeyBase58() string

func (*NearAccount) Wipe added in v0.12.1

func (a *NearAccount) Wipe()

type SolAccount

type SolAccount struct {
	// contains filtered or unexported fields
}

func NewSolFromMnemonic

func NewSolFromMnemonic(mnemonic, path string) (*SolAccount, error)

func (*SolAccount) Address

func (a *SolAccount) Address() string

func (*SolAccount) PrivateKey

func (a *SolAccount) PrivateKey() []byte

func (*SolAccount) PublicKey

func (a *SolAccount) PublicKey() []byte

func (*SolAccount) Wipe

func (a *SolAccount) Wipe()

type StarknetAccount added in v0.12.1

type StarknetAccount struct {
	// contains filtered or unexported fields
}

func NewStarknetFromMnemonic added in v0.12.1

func NewStarknetFromMnemonic(mnemonic, path string) (*StarknetAccount, error)

func (*StarknetAccount) Address added in v0.12.1

func (a *StarknetAccount) Address() string

func (*StarknetAccount) PrivateKey added in v0.12.1

func (a *StarknetAccount) PrivateKey() []byte

func (*StarknetAccount) PublicKey added in v0.12.1

func (a *StarknetAccount) PublicKey() []byte

func (*StarknetAccount) PublicKeyHex added in v0.12.1

func (a *StarknetAccount) PublicKeyHex() string

func (*StarknetAccount) Wipe added in v0.12.1

func (a *StarknetAccount) Wipe()

type StellarAccount added in v0.12.1

type StellarAccount struct {
	// contains filtered or unexported fields
}

func NewStellarFromMnemonic added in v0.12.1

func NewStellarFromMnemonic(mnemonic, path string) (*StellarAccount, error)

func (*StellarAccount) Address added in v0.12.1

func (a *StellarAccount) Address() string

func (*StellarAccount) PrivateKey added in v0.12.1

func (a *StellarAccount) PrivateKey() []byte

func (*StellarAccount) PublicKey added in v0.12.1

func (a *StellarAccount) PublicKey() []byte

func (*StellarAccount) Wipe added in v0.12.1

func (a *StellarAccount) Wipe()

type SubstrateAccount

type SubstrateAccount struct {
	// contains filtered or unexported fields
}

func NewSubstrateFromMnemonic

func NewSubstrateFromMnemonic(mnemonic, path, network string) (*SubstrateAccount, error)

func (*SubstrateAccount) Address

func (a *SubstrateAccount) Address() string

func (*SubstrateAccount) PrivateKey

func (a *SubstrateAccount) PrivateKey() []byte

func (*SubstrateAccount) PublicKey

func (a *SubstrateAccount) PublicKey() []byte

func (*SubstrateAccount) Wipe

func (a *SubstrateAccount) Wipe()

type SuiAccount

type SuiAccount struct {
	// contains filtered or unexported fields
}

func NewSuiFromMnemonic

func NewSuiFromMnemonic(mnemonic, path string) (*SuiAccount, error)

func (*SuiAccount) Address

func (a *SuiAccount) Address() string

func (*SuiAccount) PrivateKey

func (a *SuiAccount) PrivateKey() []byte

func (*SuiAccount) PublicKey

func (a *SuiAccount) PublicKey() []byte

func (*SuiAccount) Wipe

func (a *SuiAccount) Wipe()

type TonAccount added in v0.12.1

type TonAccount struct {
	// contains filtered or unexported fields
}

func NewTonFromMnemonic added in v0.12.1

func NewTonFromMnemonic(mnemonic, path string) (*TonAccount, error)

func (*TonAccount) Address added in v0.12.1

func (a *TonAccount) Address() string

func (*TonAccount) PrivateKey added in v0.12.1

func (a *TonAccount) PrivateKey() []byte

func (*TonAccount) PublicKey added in v0.12.1

func (a *TonAccount) PublicKey() []byte

func (*TonAccount) Wipe added in v0.12.1

func (a *TonAccount) Wipe()

type TrxAccount

type TrxAccount struct {
	// contains filtered or unexported fields
}

func NewTrxFromMnemonic

func NewTrxFromMnemonic(mnemonic, path string) (*TrxAccount, error)

func (*TrxAccount) Address

func (a *TrxAccount) Address() string

func (*TrxAccount) PrivateKey

func (a *TrxAccount) PrivateKey() []byte

func (*TrxAccount) PublicKey

func (a *TrxAccount) PublicKey() []byte

func (*TrxAccount) Wipe

func (a *TrxAccount) Wipe()

type UtxoAccount

type UtxoAccount struct {
	// contains filtered or unexported fields
}

func NewUtxoFromMnemonic

func NewUtxoFromMnemonic(mnemonic, path, network string) (*UtxoAccount, error)

func NewUtxoFromPrivateKeyHex

func NewUtxoFromPrivateKeyHex(privateKey, network string) (*UtxoAccount, error)

func (*UtxoAccount) Address

func (a *UtxoAccount) Address() string

func (*UtxoAccount) PrivateKey

func (a *UtxoAccount) PrivateKey() []byte

func (*UtxoAccount) PublicKey

func (a *UtxoAccount) PublicKey() []byte

func (*UtxoAccount) PublicKeyHex

func (a *UtxoAccount) PublicKeyHex() string

func (*UtxoAccount) Wipe

func (a *UtxoAccount) Wipe()

Jump to

Keyboard shortcuts

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