dune: add mte library; + wip key jsont

This commit is contained in:
Swrup 2025-10-03 21:24:02 +02:00
parent d5eaf6d92f
commit a04e179c08
5 changed files with 47 additions and 34 deletions

View file

@ -75,3 +75,12 @@ end
let amount_jsont =
Jsont.of_of_string ~kind:"Amount" Amount.of_string ~enc:Amount.to_string
module Eddsa = struct
open Eddsa
let pub_jsont =
let dec = Jsont.Base.dec_result pub_of_string in
let enc = Jsont.Base.enc pub_to_string in
Jsont.Base.string (Jsont.Base.map ~kind:"EddsaPublicKey" ~dec ~enc ())
end