Documentation ¶
Index ¶
Constants ¶
View Source
const ( CLA = 0x80 INSVersion = 0x00 INSPromptPublicKey = 0x02 INSPromptExtPublicKey = 0x03 INSSignHash = 0x04 )
View Source
const (
// PublicKeyCompressedLength is the byte count of a compressed public key
PublicKeyCompressedLength = 33
)
Variables ¶
View Source
var ( ErrLedgerNotConnected = errors.New("ledger is not connected") ErrCoinflectAppNotExecuting = errors.New("ledger is not executing coinflect app") ErrLedgerIsBlocked = errors.New("ledger is blocked") ErrRejectedSignature = errors.New("hash sign operation rejected by ledger user") ErrRejectedKeyProvide = errors.New("public key provide operation rejected by ledger user") )
Functions ¶
Types ¶
type Ledger ¶
type Ledger interface { Version() (version string, commit string, name string, err error) Address(displayHRP string, addressIndex uint32) (ids.ShortID, error) Addresses(addressIndices []uint32) ([]ids.ShortID, error) SignHash(hash []byte, addressIndices []uint32) ([][]byte, error) Disconnect() error }
Ledger interface for the ledger wrapper
Click to show internal directories.
Click to hide internal directories.