MCPcopy Create free account
hub / github.com/ElementsProject/lightning / main

Function main

devtools/encodeaddr.c:26–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24}
25
26int main(int argc, char *argv[])
27{
28 const char *hrp = argv[1];
29
30 setup_locale();
31 test_enc(hrp ?: "bc", "0014751e76e8199196d454941c45d1b3a323f1433bd6");
32 test_enc(hrp ?: "tb", "00201863143c14c5166804bd19203356da136c985678cd4d27a1b8c6329604903262");
33 test_enc(hrp ?: "bc", "5128751e76e8199196d454941c45d1b3a323f1433bd6751e76e8199196d454941c45d1b3a323f1433bd6");
34 test_enc(hrp ?: "bc", "6002751e");
35 test_enc(hrp ?: "bc", "5210751e76e8199196d454941c45d1b3a323");
36 test_enc(hrp ?: "tb", "0020000000c4a5cad46221b2a187905e5266362b99d5e91c6ce24d165dab93e86433");
37 test_enc(hrp ?: "tb", "5120000000c4a5cad46221b2a187905e5266362b99d5e91c6ce24d165dab93e86433");
38 test_enc(hrp ?: "bc", "512079be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798");
39}

Callers

nothing calls this directly

Calls 2

setup_localeFunction · 0.85
test_encFunction · 0.85

Tested by

no test coverage detected