Module Base58.Make

See src/environment/v1/base58.mli for an inlined documentation.

Parameters

module C : sig ... end

Signature

val register_encoding : prefix:string -> length:int -> to_raw:('a -> string) -> of_raw:(string -> 'a option) -> wrap:('a -> data) -> 'a encoding
val decode : ?alphabet:Alphabet.t -> string -> data option

Same bound behavior as the top-level Base58.decode, but tightened to this instance's own max_encoded_size rather than the top-level one's.

val max_encoded_size : unit -> int

max_encoded_size () is the length of the longest Base58Check encoding currently registered in this instance. Note that the result depends on the set of encodings registered at the time of the call.

val register_resolver : 'a encoding -> (C.context -> string -> 'a list Lwt.t) -> unit
val complete : ?alphabet:Alphabet.t -> C.context -> string -> string list Lwt.t