wotsp.h (682B)
1 #ifndef WOTSP_H 2 #define WOTSP_H 3 4 #include <assert.h> 5 #include <endian.h> 6 #include <stdint.h> 7 #include <stdlib.h> 8 #include <string.h> 9 10 #include "address.h" 11 #include "context.h" 12 #include "hash.h" 13 #include "utils.h" 14 15 int wotsp_pkgen(uint8_t *out, const uint8_t sk_seed[ENN], 16 const uint8_t pk_seed[ENN], uint32_t adrs[ADRS_LEN]); 17 int wotsp_sign(uint8_t *out, const uint8_t *m, const uint8_t sk_seed[ENN], 18 const uint8_t pk_seed[ENN], uint32_t adrs[ADRS_LEN]); 19 int wotsp_pk_from_sig(uint8_t *out, const uint8_t *sig, const uint8_t *m, 20 const size_t nm, const uint8_t pk_seed[ENN], 21 uint32_t adrs[ADRS_LEN]); 22 #endif