Module Bitcoinml.Block
module Header : sig ... end
Block header parsing / serialization module
val parse : ?hex:bool -> string -> t option
parse ~hex:bool data
parses thedata
and returns at
option;data
could be a binary data, or an hex human readable string if~hex
is true
val parse_legacy : ?hex:bool -> string -> t option
parse_legacy ~hex:bool data
; same asparse
but disable segwit
val serialize : ?hex:bool -> t -> string
serialize ~hex:bool block
serializes a blockblock
and returns a binary string or an hex human readable string if~hex
is true