ligo/src/lib_base/protocol_hash.ml
2018-02-08 17:23:29 +01:00

20 lines
910 B
OCaml

(**************************************************************************)
(* *)
(* Copyright (c) 2014 - 2018. *)
(* Dynamic Ledger Solutions, Inc. <contact@tezos.com> *)
(* *)
(* All rights reserved. No warranty, explicit or implicit, provided. *)
(* *)
(**************************************************************************)
include Blake2B.Make (Tezos_crypto.Base58) (struct
let name = "Protocol_hash"
let title = "A Tezos protocol ID"
let b58check_prefix = Tezos_crypto.Base58.Prefix.protocol_hash
let size = None
end)
let () =
Tezos_crypto.Base58.check_encoded_prefix b58check_encoding "P" 51