Documentation ¶
Overview ¶
Copyright (C) 2022, Ava Labs, Inc. All rights reserved. See the file LICENSE for licensing terms.
Index ¶
- Variables
- type Keychain
- 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
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrMutuallyExlusiveKeySource = errors.New("key source flags --key, --ewoq, --ledger/--ledger-addrs are mutually exclusive") ErrStoredKeyOrEwoqOnMainnet = errors.New("key sources --key, --ewoq are not available for mainnet operations") ErrNonEwoqKeyOnDevnet = errors.New("key source --ewoq is the only one available for devnet operations") ErrEwoqKeyOnFuji = errors.New("key source --ewoq is not available for fuji operations") )
Functions ¶
This section is empty.
Types ¶
type Keychain ¶
type Keychain struct { Network models.Network Keychain keychain.Keychain Ledger keychain.Ledger UsesLedger bool LedgerIndices []uint32 }
func GetKeychain ¶
func NewKeychain ¶
func (*Keychain) AddAddresses ¶
func (*Keychain) HasOnlyOneKey ¶
func (*Keychain) PChainFormattedStrAddresses ¶
Click to show internal directories.
Click to hide internal directories.