From 20bbcc4de56d6deb5ac4efa598252e436a0db415 Mon Sep 17 00:00:00 2001 From: Andy Polyakov Date: Thu, 13 Jun 2024 10:33:17 +0200 Subject: [PATCH] bindings/blst_aux.h: add EIP-2537 serialization declarations. --- bindings/blst_aux.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bindings/blst_aux.h b/bindings/blst_aux.h index 3de0850e..08ed485f 100644 --- a/bindings/blst_aux.h +++ b/bindings/blst_aux.h @@ -110,6 +110,14 @@ size_t blst_p2_sizeof(void); size_t blst_p2_affine_sizeof(void); size_t blst_fp12_sizeof(void); +void blst_p1_affine_serialize_eip2537(byte out[128], const blst_p1_affine *in); +void blst_p1_serialize_eip2537(byte out[128], const blst_p1 *in); +BLST_ERROR blst_p1_deserialize_eip2537(blst_p1_affine *out, const byte in[128]); + +void blst_p2_affine_serialize_eip2537(byte out[256], const blst_p2_affine *in); +void blst_p2_serialize_eip2537(byte out[256], const blst_p2 *in); +BLST_ERROR blst_p2_deserialize_eip2537(blst_p2_affine *out, const byte in[256]); + /* * Single-shot SHA-256 hash function. */