This commit is contained in:
swrup 2026-02-18 17:26:53 +01:00
parent 1e30753ba9
commit b719f9b9c7
7 changed files with 82 additions and 85 deletions

View file

@ -1,9 +1,7 @@
(* TODO signatures
check with taler-wallet-core/src/crypto/cryptoImplementation.js
check with taler-wallet
check signed/unsigned ints
check endianness
better handling of decoding failure *)
check endianness *)
open Hash
module Aliases = struct
@ -177,8 +175,9 @@ end = struct
type r = R.r
type t = EddsaSignature.t
let sign_f ~f r = f (Bin.to_string R.bin r)
let verify_f ~f t r = f t ~msg:(Bin.to_string R.bin r)
let to_string = Bin.to_string R.bin
let sign_f ~f r = f (to_string r)
let verify_f ~f t r = f t ~msg:(to_string r)
let jsont = EddsaSignature.jsont
let caqti : EddsaSignature.t Caqti_type.t = EddsaSignature.caqti
let to_octets t = EddsaSignature.to_octets t