Module Ledgerwallet.Apdu
type cmd=|Apdu_command :{cmd : 'a;cla_of_cmd : 'a -> int;ins_of_cmd : 'a -> int;}-> cmdArbitrary type of a command, with its converters.
val create_cmd : cmd:'a -> cla_of_cmd:('a -> int) -> ins_of_cmd:('a -> int) -> cmd
type t={cmd : cmd;p1 : int;p2 : int;lc : int;le : int;data : Cstruct.t;}Type of an ADPU.
val create : ?p1:int -> ?p2:int -> ?lc:int -> ?le:int -> ?data:Cstruct.t -> cmd -> tval create_string : ?p1:int -> ?p2:int -> ?lc:int -> ?le:int -> ?data:string -> cmd -> tval length : t -> intlength tis the size oftin bytes.
val write : Cstruct.t -> t -> Cstruct.twrite cs twrites t atcsand returnscsshifted bylength tbytes.