package ledgerwallet

  1. Overview
  2. Docs
type error
val pp_error : Format.formatter -> error -> unit
val 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.

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

val 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.