package bech32

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
module type NETWORK = sig ... end
module Btc : NETWORK with type t = [ `Btc ]
module Tbtc : NETWORK with type t = [ `Tbtc ]
module Zil : NETWORK with type t = [ `Zil ]
type 'a t = private {
  1. network : (module NETWORK with type t = 'a);
  2. version : int option;
  3. prog : string;
}
val scriptPubKey : 'a t -> string
val pp : Stdlib.Format.formatter -> _ t -> unit
val create : ?version:int -> (module NETWORK with type t = 'a) -> string -> 'a t
val encode : _ t -> (string, string) Stdlib.result
val encode_exn : _ t -> string
val decode : (module NETWORK with type t = 'a) -> string -> ('a t, string) Stdlib.result
val decode_exn : (module NETWORK with type t = 'a) -> string -> 'a t