GUI packages, examples, and documentation for building desktop applications with Go and web technologies. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
20 lines
672 B
Go
20 lines
672 B
Go
package electroncompat
|
|
|
|
// LedgerService provides Ledger hardware wallet integration.
|
|
// This corresponds to the Ledger IPC service from the Electron app.
|
|
type LedgerService struct{}
|
|
|
|
// NewLedgerService creates a new LedgerService instance.
|
|
func NewLedgerService() *LedgerService {
|
|
return &LedgerService{}
|
|
}
|
|
|
|
// GetXPub returns the extended public key from the Ledger device.
|
|
func (s *LedgerService) GetXPub(path string) (string, error) {
|
|
return "", notImplemented("Ledger", "getXPub")
|
|
}
|
|
|
|
// GetAppVersion returns the Handshake app version on the Ledger.
|
|
func (s *LedgerService) GetAppVersion() (string, error) {
|
|
return "", notImplemented("Ledger", "getAppVersion")
|
|
}
|