diff options
| author | 2025-09-14 22:56:09 +0330 | |
|---|---|---|
| committer | 2025-09-14 22:56:09 +0330 | |
| commit | dae22b776a8322029a3f2b33fbb6738c848dd4a3 (patch) | |
| tree | 27109873037214e10705f06967ccc712cb1cda5d /client/client.h | |
| parent | stuff (diff) | |
🎶 iiiii waaas goinggg insaaaaaaaane
Diffstat (limited to 'client/client.h')
| -rw-r--r-- | client/client.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/client/client.h b/client/client.h index ee94d21..a2a6a28 100644 --- a/client/client.h +++ b/client/client.h @@ -8,6 +8,7 @@ typedef uint8_t byte; typedef byte hash[ 32 ]; typedef byte public_key[ 32 ]; typedef byte private_key[ 32 ]; +typedef byte recipient[ 64 ]; typedef byte signature[ 64 ]; typedef byte ipv4[ 4 ]; typedef byte ipv6[ 16 ]; @@ -48,7 +49,7 @@ struct data_packet { public_key author; public_key author_signing_pub; uint8_t recipient_count; - public_key recipients[ 32 ]; + recipient recipients[ 32 ]; byte data[ 65536 ]; signature signature; } contents; @@ -165,7 +166,7 @@ struct data_packet mp_create_packet_from_bytes( const byte* input, size_t input_len, byte recipient_count, - hash* recipients, + recipient* recipients, keypair author_keys); /** @@ -180,7 +181,7 @@ struct data_packet mp_create_packet_from_bytes( mp_client_error_t mp_create_packet_from_file( const char* filename, byte recipient_count, - hash* recipients, + recipient* recipients, keypair author_keys, struct data_packet* out_packet); |
