]> git.ozlabs.org Git - ccan/blob - ccan/crypto/shachain/_info
crypto/shachain: new module
[ccan] / ccan / crypto / shachain / _info
1 #include "config.h"
2 #include <stdio.h>
3 #include <string.h>
4
5 /**
6  * crypto/shachain - compactly-representable chain of 256-bit numbers.
7  *
8  * This code produces a practically infinite (2^64) chain of 256-bit numbers
9  * from a single number, such that you can't derive element N from any element
10  * less than N, but can efficiently derive element N from a limited number
11  * of elements >= N.
12  *
13  * License: BSD-MIT
14  * Author: Rusty Russell <rusty@rustcorp.com.au>
15  */
16 int main(int argc, char *argv[])
17 {
18         /* Expect exactly one argument */
19         if (argc != 2)
20                 return 1;
21
22         if (strcmp(argv[1], "depends") == 0) {
23                 printf("ccan/ilog\n");
24                 printf("ccan/crypto/sha256\n");
25                 return 0;
26         }
27
28         return 1;
29 }