mirror of
https://github.com/luxfi/ledger-go.git
synced 2026-10-30 16:21:27 +00:00
Forked from github.com/zondax/ledger-go v1.0.1 - Replaced golem logger with direct zap usage - Removed 111 transitive dependencies - 10 deps vs 121 original NO GOLEM. NO BLOAT.
19 lines
546 B
Go
19 lines
546 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// Forked from github.com/zondax/ledger-go
|
|
// Licensed under the Apache License, Version 2.0
|
|
|
|
package ledger_go
|
|
|
|
// LedgerAdmin defines the interface for managing Ledger devices.
|
|
type LedgerAdmin interface {
|
|
CountDevices() int
|
|
ListDevices() ([]string, error)
|
|
Connect(deviceIndex int) (LedgerDevice, error)
|
|
}
|
|
|
|
// LedgerDevice defines the interface for interacting with a Ledger device.
|
|
type LedgerDevice interface {
|
|
Exchange(command []byte) ([]byte, error)
|
|
Close() error
|
|
}
|