Crates.io | coins-ledger |
lib.rs | coins-ledger |
version | 0.12.0 |
source | src |
created_at | 2021-01-04 19:46:21.735495 |
updated_at | 2024-07-27 13:04:42.429591 |
description | Ledger Nano X/S connection and communication management library |
homepage | https://github.com/summa-tx/coins |
repository | https://github.com/summa-tx/coins |
max_upload_size | |
id | 331780 |
size | 273,345 |
Communication library between Rust and Ledger Nano S/X devices
Windows is not yet supported.
cargo build
--disable-default-features
browser
and node
@ledgerhq/hw-transport-node-hid
wasm-pack build --scope summa-tx --target nodejs -- --features=node --no-default-features
@ledgerhq/hw-transport-node-hid
@ledgerhq/hw-transport-u2f
wasm-pack build --scope summa-tx --target bundler -- --features=broswer --no-default-features
@ledgerhq/hw-transport-u2f
The node
and browser
features are mutually exclusive. You must specify
exactly one, as well as the --no-default-features
flag.
When building for non-wasm architectures, a native HID transport is compiled
in. When building wasm via wasm-pack
, you must specify whether you want the
node or browser wasm transport.
$ cargo test -- --lib
$ cargo test
This repo was forked from Zondax's repo
at commit 7d40af96
.
Their code is reproduced here under the terms of the Apache 2 License. Files
containing elements from their code maintain their original Apache 2 license
notice at the bottom of the file.
Further work by Summa is available under the GNU LGPLv3 license.
These changes are as follows:
wasm_bindgen
bindings for JS ledger transports