github.com/decred/dcrlnd@v0.7.6/chainreg/wallet_config.go (about) 1 package chainreg 2 3 import ( 4 "time" 5 6 "github.com/decred/dcrlnd/btcwalletcompat" 7 "github.com/decred/dcrlnd/lnwallet/dcrwallet" 8 ) 9 10 // WalletConfig encapsulates the config parameters needed to init a wallet 11 // backend. 12 type WalletConfig struct { 13 // PrivatePass is the private wallet password to the underlying 14 // btcwallet instance. 15 PrivatePass []byte 16 17 // PublicPass is the public wallet password to the underlying btcwallet 18 // instance. 19 PublicPass []byte 20 21 // Birthday specifies the time the wallet was initially created. 22 Birthday time.Time 23 24 // RecoveryWindow specifies the address look-ahead for which to scan when 25 // restoring a wallet. 26 RecoveryWindow uint32 27 28 // AccountNb is the root account from which the dcrlnd keys are 29 // derived when running based on a remote wallet. 30 AccountNb int32 31 32 Syncer dcrwallet.WalletSyncer 33 34 // CoinSelectionStrategy is the coin selection strategy to use when 35 // sending coins on-chain. 36 // 37 // Note: not currently supported in dcrwallet. 38 CoinSelectionStrategy btcwalletcompat.CoinSelectionStrategy 39 }