acc

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2026 License: Apache-2.0 Imports: 13 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 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 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 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 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 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 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