add hash.ml + refacto

This commit is contained in:
swrup 2026-02-05 17:51:24 +01:00 committed by Swrup
parent 44ddee9dab
commit 34f98b697f
11 changed files with 193 additions and 199 deletions

View file

@ -1,8 +1,7 @@
(* this module defines caqti encoding/decodings *)
open Crypto
open Bin_type
open Api
open Caqti_type
open Crypto
open Api
(* TODO
check that we use Caqti_type.octets for binary data *)
@ -32,6 +31,7 @@ let b32 = B32.caqti
include struct
(* alias for hash *)
open Hash
let fullpayto_hash = FullPaytoHash.caqti
let nomalizaedpayto_hash = NormalizedPaytoHash.caqti