dune: add mte library; + wip key jsont
This commit is contained in:
parent
d5eaf6d92f
commit
a04e179c08
5 changed files with 47 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue