summaryrefslogtreecommitdiff
path: root/client/client.h
diff options
context:
space:
mode:
Diffstat (limited to 'client/client.h')
-rw-r--r--client/client.h7
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);