package ledgerwallet

  1. Overview
  2. Docs

Module Ledgerwallet.Transport_hidapiSource

Sourcetype error
Sourceval pp_error : Format.formatter -> error -> unit
Sourceval write_apdu : ?pp:Format.formatter -> ?buf:Cstruct.t -> Hidapi.t -> Apdu.t -> (unit, error) result Lwt.t

write_apdu ?pp ?buf ledger apdu writes apdu to ledger.

Sourceval read : ?pp:Format.formatter -> ?buf:Cstruct.t -> Hidapi.t -> (Status.t * Cstruct.t, error) result Lwt.t

read ?pp ?buf ledger reads from ledger a status response and a payload.

Sourceval ping : ?pp:Format.formatter -> ?buf:Cstruct.t -> Hidapi.t -> (unit, error) result Lwt.t

ping ?pp ?buf ledger writes a ping packet to ledger, optionally containing buf.

OCaml

Innovation. Community. Security.