Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Zondax/ledger-rs
/ functions
Functions
37 in github.com/Zondax/ledger-rs
⨍
Functions
37
◇
Types & classes
15
↓ 9 callers
Method
error_code
Will attempt to interpret the error code as an [APDUErrorCode], returning the code as is otherwise
ledger-apdu/src/lib.rs:102
↓ 5 callers
Method
exchange
( &self, command: &APDUCommand<I>, )
ledger-transport-hid/src/lib.rs:179
↓ 4 callers
Method
data
(&self)
ledger-apdu/src/lib.rs:96
↓ 4 callers
Function
hidapi
()
ledger-transport-hid/src/lib.rs:228
↓ 4 callers
Function
init_logging
()
ledger-transport-hid/src/lib.rs:222
↓ 3 callers
Method
description
Quick-hand to retrieve the error code's description / display
ledger-apdu/src/lib.rs:152
↓ 2 callers
Method
serialize
Serialize this [APDUCommand] to be sent to the device
ledger-apdu/src/lib.rs:53
↓ 1 callers
Method
apdu_data
(&self)
ledger-apdu/src/lib.rs:90
↓ 1 callers
Function
catchExit
()
tests/test.js:6
Function
apdu_answer_error
()
ledger-apdu/src/tests.rs:63
Function
apdu_answer_success
()
ledger-apdu/src/tests.rs:39
Function
apdu_answer_too_short
()
ledger-apdu/src/tests.rs:87
Function
apdu_answer_unknown
()
ledger-apdu/src/tests.rs:75
Function
apdu_answer_vec
()
ledger-apdu/src/tests.rs:51
Function
apdu_command_slice
()
ledger-apdu/src/tests.rs:32
Function
apdu_command_vec
()
ledger-apdu/src/tests.rs:23
Function
exchange
()
ledger-transport-hid/src/lib.rs:288
Method
from
(code: APDUErrorCode)
ledger-apdu/src/lib.rs:158
Method
from_answer
Attempt to interpret the given slice as an APDU answer
ledger-apdu/src/lib.rs:80
Method
get_app_info
Retrieve the app info Works only in app (TOOD: dashboard support)
ledger-zondax-generic/src/lib.rs:212
Method
get_device_info
Retrieve the device info Works only in the dashboard
ledger-zondax-generic/src/lib.rs:161
Method
get_version
Retrieve the app version
ledger-zondax-generic/src/lib.rs:260
Method
handle_response_error
Handles the error response from APDU exchange. # Arguments `response` - The response from the APDU exchange. # Returns A result indicating success o
ledger-zondax-generic/src/lib.rs:134
Method
handle_response_error_signature
Handles the error response from APDU exchange. # Arguments `response` - The response from the APDU exchange. # Returns A result indicating success o
ledger-zondax-generic/src/lib.rs:149
Method
is_ledger
(dev: &DeviceInfo)
ledger-transport-hid/src/lib.rs:40
Function
ledger_device_path
()
ledger-transport-hid/src/lib.rs:260
Function
list_all_devices
()
ledger-transport-hid/src/lib.rs:236
Method
list_ledgers
Get a list of ledger devices available
ledger-transport-hid/src/lib.rs:45
Method
new
Create a new HID transport, connecting to the first ledger found # Warning Opening the same device concurrently will lead to device lock after the fir
ledger-transport-hid/src/lib.rs:54
Method
open_device
Open a specific ledger device # Note No checks are made to ensure the device is a ledger device # Warning Opening the same device concurrently will
ledger-transport-hid/src/lib.rs:70
Function
open_same_device_twice
see https://github.com/ruabmbua/hidapi-rs/issues/81
ledger-transport-hid/src/lib.rs:307
Method
read_apdu
( device: &HidDevice, channel: u16, apdu_answer: &mut Vec<u8>, )
ledger-transport-hid/src/lib.rs:124
Method
retcode
(&self)
ledger-apdu/src/lib.rs:110
Method
send_chunks
Stream a long request in chunks, with an option to set P2 for all chunks. This method combines the functionality of sending chunks with or without P2
ledger-zondax-generic/src/lib.rs:325
Function
serialize
()
ledger-transport-hid/src/lib.rs:274
Method
try_from
(value: u16)
ledger-apdu/src/lib.rs:166
Method
write_apdu
( device: &HidDevice, channel: u16, apdu_command: &[u8], )
ledger-transport-hid/src/lib.rs:82