···112112 | Ok p -> p
113113 | Error _ -> failwith "negate: invalid result"
114114115115+ let err_ec e = Error (Fmt.str "%a" Crypto_ec.pp_error e)
116116+115117 let of_bytes s =
116116- match Ec.of_octets s with
117117- | Ok p -> Ok p
118118- | Error e -> Error (Fmt.str "%a" Crypto_ec.pp_error e)
118118+ match Ec.of_octets s with Ok p -> Ok p | Error e -> err_ec e
119119120120 (** Convert a scalar represented as Z.t to the constant-time scalar type *)
121121 let scalar_of_z z =