package bitcoinml

  1. Overview
  2. Docs
type prefix = {
  1. pubkeyhash : int;
  2. scripthash : int;
  3. hrp : string;
}

Address prefixes struct

type t = string

Address abstract type

module Bech32 : sig ... end
val of_pub : int -> string -> t

Get the address from a public key

val of_pubhash : int -> string -> t

Get the address from a public key hash

val of_witness : string -> int -> string -> t

Get the bech32 address from a witness script

OCaml

Innovation. Community. Security.