docs.rs failed to build unc-ledger-0.10.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
unc-ledger-0.7.3
unc-ledger-rs
It is UNC <-> Ledger transport
Provides a set of commands that can be executed to communicate with UNC App installed on Ledger device:
- Read PublicKey from Ledger device by HD Path
- Sign a Transaction
Examples
Get PublicKey from Ledger
use get_public_key;
use BIP32Path;
use FromStr;
let hd_path = from_str.unwrap;
let public_key = get_public_key.unwrap;
println!;
Trick
To convert the answer into unc_crypto::PublicKey
do:
let public_key = ED25519;
How to sign a transaction
use ;
use BorshSerialize;
use BIP32Path;
use FromStr;
let hd_path = from_str.unwrap;
let borsh_transaction = unc_unsigned_transaction.try_to_vec.unwrap;
let signature = sign_transaction.unwrap;
println!;
Trick
To convert the answer into unc_crypto::Signature
do:
let signature = from_parts
.expect;
Executable examples
Get version
RUST_LOG=info
Get PublicKey from Ledger
Display
RUST_LOG=info
Silent
RUST_LOG=info
Get WalletID from Ledger
RUST_LOG=info
Sign a transaction
Transfer
RUST_LOG=info
Other
Sign a NEP-413 message
RUST_LOG=info
Sign a NEP-366 delegate action
RUST_LOG=info