wallet

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 17 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrPublicKeyNotFound = errors.New("public key not found")

Functions

func NewCrypt

func NewCrypt(key []byte) *crypt

Types

type EmbeddedWalletImpl added in v0.5.0

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

func NewEmbeddedWallet added in v0.5.0

func NewEmbeddedWallet(path Loader, seeder seeder, scheme proto.Scheme) *EmbeddedWalletImpl

func (*EmbeddedWalletImpl) AccountSeeds added in v0.10.4

func (a *EmbeddedWalletImpl) AccountSeeds() [][]byte

func (*EmbeddedWalletImpl) BLSPairByWavesPK added in v0.11.0

func (a *EmbeddedWalletImpl) BLSPairByWavesPK(publicKey crypto.PublicKey) (bls.SecretKey, bls.PublicKey, error)

func (*EmbeddedWalletImpl) FindPublicKeyByAddress added in v0.11.0

func (a *EmbeddedWalletImpl) FindPublicKeyByAddress(address proto.WavesAddress,
	scheme proto.Scheme) (crypto.PublicKey, error)

func (*EmbeddedWalletImpl) KeyPairsBLS added in v0.11.0

func (a *EmbeddedWalletImpl) KeyPairsBLS() ([]bls.PublicKey, []bls.SecretKey, error)

func (*EmbeddedWalletImpl) Load added in v0.5.0

func (a *EmbeddedWalletImpl) Load(password []byte) error

func (*EmbeddedWalletImpl) SignTransactionWith added in v0.5.0

func (a *EmbeddedWalletImpl) SignTransactionWith(pk crypto.PublicKey, tx proto.Transaction) error

type Loader added in v0.5.0

type Loader interface {
	Load() ([]byte, error)
}

type LoaderImpl added in v0.5.0

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

func NewLoader added in v0.5.0

func NewLoader(path string) LoaderImpl

func (LoaderImpl) Load added in v0.5.0

func (a LoaderImpl) Load() ([]byte, error)

type Wallet

type Wallet interface {
	AccountSeeds() [][]byte
	AddAccountSeed([]byte) error
	Encode(pass []byte) ([]byte, error)
}

func Decode

func Decode(walletData []byte, password []byte) (Wallet, error)

type WalletFormat

type WalletFormat struct {
	Seed [][]byte `json:"seeds"`
}

type WalletImpl added in v0.5.0

type WalletImpl struct {
	Version uint32
	// contains filtered or unexported fields
}

func NewWallet added in v0.5.0

func NewWallet() *WalletImpl

func (*WalletImpl) AccountSeeds added in v0.10.4

func (a *WalletImpl) AccountSeeds() [][]byte

func (*WalletImpl) AddAccountSeed added in v0.10.4

func (a *WalletImpl) AddAccountSeed(seed []byte) error

func (*WalletImpl) Encode added in v0.5.0

func (a *WalletImpl) Encode(password []byte) ([]byte, error)

Jump to

Keyboard shortcuts

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