mirror of
https://github.com/luxfi/ledger-lux-go.git
synced 2026-10-30 16:21:22 +00:00
- Update luxfi/crypto to v1.17.15, luxfi/ids to v1.1.3 - Update copyright year to 2025 across source files - Remove ledger.go.disabled (used incorrect luxfi/node/ids import)
53 lines
1.0 KiB
Go
53 lines
1.0 KiB
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
//go:build !ledger
|
|
// +build !ledger
|
|
|
|
package ledger
|
|
|
|
import (
|
|
"errors"
|
|
|
|
"github.com/luxfi/ids"
|
|
"github.com/luxfi/ledger-lux-go/keychain"
|
|
)
|
|
|
|
var ErrLedgerDisabled = errors.New("ledger support is disabled")
|
|
|
|
type Ledger struct{}
|
|
|
|
type Keychain struct{}
|
|
|
|
func New() (keychain.Ledger, error) {
|
|
return nil, ErrLedgerDisabled
|
|
}
|
|
|
|
func NewKeychain() (*Keychain, error) {
|
|
return nil, ErrLedgerDisabled
|
|
}
|
|
|
|
func (l *Keychain) Close() error {
|
|
return ErrLedgerDisabled
|
|
}
|
|
|
|
func (l *Keychain) Addresses() []ids.ShortID {
|
|
return nil
|
|
}
|
|
|
|
func (l *Keychain) Ledger() *Ledger {
|
|
return nil
|
|
}
|
|
|
|
func (l *Keychain) Get(address ids.ShortID) (keychain.Signer, bool) {
|
|
return nil, false
|
|
}
|
|
|
|
func (l *Keychain) Match(owners interface{}, minSigs uint32) ([]ids.ShortID, []uint32, bool) {
|
|
return nil, nil, false
|
|
}
|
|
|
|
func (l *Keychain) Spend(owners interface{}, minSigs uint32) ([]ids.ShortID, []keychain.Signer, bool) {
|
|
return nil, nil, false
|
|
}
|