X-Git-Url: http://git.ozlabs.org/?p=ccan;a=blobdiff_plain;f=ccan%2Fcrypto%2Fshachain%2F_info;fp=ccan%2Fcrypto%2Fshachain%2F_info;h=7cbf02da8f5cb8e5622f43c7344afd13b27fa156;hp=0000000000000000000000000000000000000000;hb=fc6655ed3c4840a5d4d669ad3c44e2ffe1019173;hpb=0d73f8ebb66d2613ecc0b87c6e608de59be110f6 diff --git a/ccan/crypto/shachain/_info b/ccan/crypto/shachain/_info new file mode 100644 index 00000000..7cbf02da --- /dev/null +++ b/ccan/crypto/shachain/_info @@ -0,0 +1,29 @@ +#include "config.h" +#include +#include + +/** + * crypto/shachain - compactly-representable chain of 256-bit numbers. + * + * This code produces a practically infinite (2^64) chain of 256-bit numbers + * from a single number, such that you can't derive element N from any element + * less than N, but can efficiently derive element N from a limited number + * of elements >= N. + * + * License: BSD-MIT + * Author: Rusty Russell + */ +int main(int argc, char *argv[]) +{ + /* Expect exactly one argument */ + if (argc != 2) + return 1; + + if (strcmp(argv[1], "depends") == 0) { + printf("ccan/ilog\n"); + printf("ccan/crypto/sha256\n"); + return 0; + } + + return 1; +}