Versions in this module Expand all Collapse all v1 v1.0.0 Nov 14, 2024 Changes in this version + var ErrEwoqKeyOnFuji = errors.New("key source --ewoq is not available for fuji operations") + var ErrMutuallyExlusiveKeySource = errors.New(...) + var ErrNonEwoqKeyOnDevnet = errors.New("key source --ewoq is the only one available for devnet operations") + var ErrStoredKeyOrEwoqOnMainnet = errors.New("key sources --key, --ewoq are not available for mainnet operations") + type Keychain struct + Keychain keychain.Keychain + Ledger keychain.Ledger + LedgerIndices []uint32 + Network models.Network + UsesLedger bool + func GetKeychain(app *application.Avalanche, useEwoq bool, useLedger bool, ...) (*Keychain, error) + func GetKeychainFromCmdLineFlags(app *application.Avalanche, keychainGoal string, network models.Network, ...) (*Keychain, error) + func NewKeychain(network models.Network, keychain keychain.Keychain, ledger keychain.Ledger, ...) *Keychain + func (kc *Keychain) AddAddresses(addresses []string) error + func (kc *Keychain) Addresses() set.Set[ids.ShortID] + func (kc *Keychain) HasOnlyOneKey() bool + func (kc *Keychain) PChainFormattedStrAddresses() ([]string, error)