~ keep jsont in Types for trivial types
not sure about this
This commit is contained in:
parent
9929a4a324
commit
c68f7db1a6
3 changed files with 15 additions and 31 deletions
30
src/json.ml
30
src/json.ml
|
|
@ -73,36 +73,6 @@ module RelativeTime = struct
|
|||
|> Jsont.Object.finish
|
||||
end
|
||||
|
||||
module Amount = struct
|
||||
open Amount
|
||||
|
||||
let jsont = Jsont.of_of_string ~kind:"Amount" of_string ~enc:to_string
|
||||
end
|
||||
|
||||
module EddsaPublicKey = struct
|
||||
open EddsaPublicKey
|
||||
|
||||
let jsont = Jsont.of_of_string ~kind:"EddsaPublicKey" of_b32 ~enc:to_b32
|
||||
end
|
||||
|
||||
module EddsaSignature = struct
|
||||
open EddsaSignature
|
||||
|
||||
let jsont = Jsont.of_of_string ~kind:"EddsaSignature" of_b32 ~enc:to_b32
|
||||
end
|
||||
|
||||
module RsaPublicKey = struct
|
||||
open RsaPublicKey
|
||||
|
||||
let jsont = Jsont.of_of_string ~kind:"RsaPublicKey" of_b32 ~enc:to_b32
|
||||
end
|
||||
|
||||
module RsaSignature = struct
|
||||
open RsaSignature
|
||||
|
||||
let jsont = Jsont.of_of_string ~kind:"RsaSignature" of_b32 ~enc:to_b32
|
||||
end
|
||||
|
||||
module RsaDenominationKey = struct
|
||||
open RsaDenominationKey
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue