Files
zeekay 73646704fa Update dependencies and copyright year
- 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)
2025-12-11 05:19:37 +00:00

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
}