package bitcoinml

  1. Overview
  2. Docs
module Header : sig ... end

Block header parsing / serialization module

type t = {
  1. header : Header.t;
  2. txs : Tx.t list;
  3. size : int;
}
include sig ... end
val t_of_sexp : Sexplib.Sexp.t -> t
val sexp_of_t : t -> Sexplib.Sexp.t
val parse : bytes -> t option

Parse a block

val parse_legacy : bytes -> t option

Parse a legacy block

val serialize : t -> bytes

Serialize a block

val to_string : t -> string

Get a string sexp representation of a block

OCaml

Innovation. Community. Security.