Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Keychain ¶
Keychain interface that wallet signers can use This allows both secp256k1fx.Keychain and ledger-lux-go/keychain.Keychain to be used Generic across chains, DAGs, and post-quantum crypto
func NewLedgerKeychain ¶
func NewLedgerKeychain(kc *ledgerkeychain.Keychain) Keychain
NewLedgerKeychain creates a new adapter from ledger-lux-go/keychain.Keychain
type LedgerKeychain ¶
type LedgerKeychain struct {
// contains filtered or unexported fields
}
LedgerKeychain adapts a ledger-lux-go/keychain.Keychain to implement the Keychain interface
func (*LedgerKeychain) Addresses ¶
func (l *LedgerKeychain) Addresses() []ids.ShortID
type Secp256k1fxKeychain ¶
type Secp256k1fxKeychain struct {
// contains filtered or unexported fields
}
Secp256k1fxKeychain adapts a secp256k1fx.Keychain to implement the Keychain interface
func NewSecp256k1fxKeychain ¶
func NewSecp256k1fxKeychain(kc *secp256k1fx.Keychain) *Secp256k1fxKeychain
NewSecp256k1fxKeychain creates a new adapter from secp256k1fx.Keychain
func (*Secp256k1fxKeychain) Addresses ¶
func (a *Secp256k1fxKeychain) Addresses() []ids.ShortID
func (*Secp256k1fxKeychain) EthAddresses ¶
func (a *Secp256k1fxKeychain) EthAddresses() set.Set[common.Address]
EthAddresses implements c.EthKeychain
type Signer ¶
type Signer interface {
SignHash([]byte) ([]byte, error)
Sign([]byte) ([]byte, error)
Address() ids.ShortID
}
Signer interface for signing operations Generic interface for all signing needs (classical and post-quantum)
type WalletKeychain ¶
type WalletKeychain struct {
// contains filtered or unexported fields
}
WalletKeychain provides both LUX and Eth keychain functionality for wallets
func NewWalletKeychain ¶
func NewWalletKeychain(kc *secp256k1fx.Keychain) *WalletKeychain
NewWalletKeychain creates a new wallet keychain from secp256k1fx.Keychain
func (*WalletKeychain) Addresses ¶
func (w *WalletKeychain) Addresses() []ids.ShortID
Addresses implements Keychain
func (*WalletKeychain) EthAddresses ¶
func (w *WalletKeychain) EthAddresses() set.Set[common.Address]
EthAddresses returns Ethereum addresses