added keys.h, sleep_crypto.h; worked sleep.h, sleep_tree.c, sleep_crypto.c

This commit is contained in:
2025-10-04 13:28:24 -04:00
parent e51f5c7bc8
commit 23c037e02e
12 changed files with 126 additions and 1 deletions

View File

@@ -0,0 +1,17 @@
#ifndef KEYS_H
#define KEYS_H
#include <stdint.h>
#define SLEEP_PUB_KEY_BYTES 32
#define SLEEP_SECRET_KEY_BYTES 64
#define SLEEP_SIGNATURE_BYES 64
#define SLEEP_BLAKE2B_BYES 32
typedef struct {
uint8_t pubkey[SLEEP_PUB_KEY_BYTES];
uint8_t seckey[SLEEP_SECRET_KEY_BYES];
} sleep_keypair_t;
#endif /* KEYS_H */