34 lines
1.2 KiB
OCaml
34 lines
1.2 KiB
OCaml
|
(**************************************************************************)
|
||
|
(* *)
|
||
|
(* Copyright (c) 2014 - 2016. *)
|
||
|
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
|
||
|
(* *)
|
||
|
(* All rights reserved. No warranty, explicit or implicit, provided. *)
|
||
|
(* *)
|
||
|
(**************************************************************************)
|
||
|
|
||
|
val safe_encode: ?alphabet:string -> string -> string
|
||
|
val safe_decode: ?alphabet:string -> string -> string
|
||
|
|
||
|
type data = ..
|
||
|
|
||
|
val decode: ?alphabet:string -> string -> data
|
||
|
val encode: ?alphabet:string -> data -> string
|
||
|
|
||
|
val register:
|
||
|
prefix:string ->
|
||
|
read:(data -> string option) ->
|
||
|
build:(string -> data) ->
|
||
|
unit
|
||
|
|
||
|
module Prefix : sig
|
||
|
val block_hash: string
|
||
|
val operation_hash: string
|
||
|
val protocol_hash: string
|
||
|
val public_key_hash: string
|
||
|
val public_key: string
|
||
|
val secret_key: string
|
||
|
val signature: string
|
||
|
val protocol_prefix: string
|
||
|
end
|