#include #include "../wots.h" #include "../randombytes.h" #include "../params.h" static void hexdump(unsigned char *a, size_t len) { size_t i; for (i = 0; i < len; i++) printf("%02x", a[i]); } int main() { unsigned char seed[32]; unsigned char pub_seed[32]; wots_params params; wots_set_params(¶ms, 32, 32, 16); int sig_len = params.len*params.n; unsigned char pk1[sig_len]; unsigned char pk2[sig_len]; unsigned char sig[sig_len]; unsigned char addr[16] = {1,2,3,4}; unsigned char msg[32]; int i; randombytes(seed, 32); randombytes(pub_seed, 32); randombytes(msg, 32); //randombytes(addr, 16); wots_pkgen(pk1, seed, ¶ms, pub_seed, addr); wots_sign(sig, msg, seed, ¶ms, pub_seed, addr); wots_pkFromSig(pk2, sig, msg, ¶ms, pub_seed, addr); for(i=0;i