package ledgerwallet

  1. Overview
  2. Docs
type t
type error
val pp_error : Stdlib.Format.formatter -> error -> unit
val create : ?name:string -> ?port:int -> unit -> t
val close : t -> unit
val write_apdu : ?pp:Stdlib.Format.formatter -> t -> Apdu.t -> (unit, error) Stdlib.result

write_apdu ?pp ledger apdu writes apdu to ledger.

val read : t -> (Status.t * Cstruct.t, error) Stdlib.result

read ledger reads from ledger a status response and a payload.

OCaml

Innovation. Community. Security.