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)
19 lines
577 B
Go
19 lines
577 B
Go
// Copyright (C) 2019-2025, Lux Industries Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package keychain
|
|
|
|
import (
|
|
"github.com/luxfi/ids"
|
|
)
|
|
|
|
// Ledger interface for the ledger wrapper
|
|
type Ledger interface {
|
|
Version() (major, minor, patch uint32, err error)
|
|
Address(displayHRP string, addressIndex uint32) (ids.ShortID, error)
|
|
Addresses(addressIndices []uint32) ([]ids.ShortID, error)
|
|
SignHash(hash []byte, addressIndices []uint32) ([][]byte, error)
|
|
Sign(unsignedTxBytes []byte, addressIndices []uint32) ([][]byte, error)
|
|
Disconnect() error
|
|
}
|