add protocol_version

This commit is contained in:
swrup 2026-02-05 21:19:57 +01:00
parent 040c9d88ea
commit 7694701e19
4 changed files with 12 additions and 34 deletions

View file

@ -1,9 +1,3 @@
(* TODO
json:
"A JSON object is canonicalized by converting it to an ASCII byte array
with the algorithm specified in RFC 8785. The resulting bytes are
terminated with a single 0-byte and then hashed with SHA512." *)
open Digestif
module type S = sig
@ -99,6 +93,8 @@ module Cstring = struct
end
end
(* TODO
check which hash algorithm to use for each hash type *)
module FullPaytoHash : S = H32
module NormalizedPaytoHash : S = H32
module DenominationHash : S = H64