Skip to content

Commit

Permalink
bindings/blst_aux.h: add EIP-2537 serialization declarations.
Browse files Browse the repository at this point in the history
  • Loading branch information
dot-asm committed Jun 13, 2024
1 parent 15c23b1 commit 20bbcc4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions bindings/blst_aux.h
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 20bbcc4

Please sign in to comment.