package ledgerwallet

  1. Overview
  2. Docs
type error
val pp_error : Stdlib.Format.formatter -> error -> unit
val write_apdu : ?pp:Stdlib.Format.formatter -> ?buf:Cstruct.t -> Hidapi.t -> Apdu.t -> (unit, error) Stdlib.result

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

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

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

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

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

OCaml

Innovation. Community. Security.