lwk_ledger 0.17.0

Liquid Wallet Kit - Interact with Ledger Hardware Wallet
Documentation
pub use crate::psbt::PartialSignature;
pub use client::{LiquidClient, Transport};
pub use transport_tcp::TransportTcp;

mod client;
mod transport_tcp;

#[derive(Debug)]
pub struct Ledger<T: Transport> {
    /// Ledger Liquid Client
    pub client: LiquidClient<T>,
}

impl Ledger<TransportTcp> {
    pub fn new(port: u16, network: lwk_common::Network) -> Self {
        let client = LiquidClient::new(TransportTcp::new(port).expect("TODO"), network);
        Self { client }
    }
}
impl<T: Transport> Ledger<T> {
    pub fn from_transport(transport: T, network: lwk_common::Network) -> Self {
        let client = LiquidClient::new(transport, network);
        Self { client }
    }
}