This commit is contained in:
swrup 2026-02-16 17:55:21 +01:00
parent 6bf2771f1c
commit eddc8127a1
11 changed files with 40 additions and 165 deletions

View file

@ -80,13 +80,7 @@ module Binary_format_rsa = struct
| _ -> assert false
end
(* TODO key format
- check what is the exact format in GNUNET
- endianess issue? *)
module EddsaPublicKey = struct
(* EdDSA and ECDHE public keys always point on Curve25519
and represented using the standard 256 bits Ed25519 compact format,
converted to Crockford Base32. *)
open Mirage_crypto_ec.Ed25519
type t = pub
@ -161,8 +155,6 @@ module EddsaSignature : sig
val bin : t Bin.t
val caqti : t Caqti_type.t
end = struct
(* TODO key format
endianess issue? *)
(* transmitted as 64-bytes base32
binary-encoded objects with just the R and S values *)
type t = string