Browse Source

Don't advertise features we don't have in run-sphinx

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
ba4282f935
  1. 18
      common/test/run-sphinx.c

18
common/test/run-sphinx.c

@ -160,25 +160,16 @@ int main(int argc, char **argv)
{
setup_locale();
bool generate = false, decode = false, unit = false;
u8 assocdata[32];
memset(assocdata, 'B', sizeof(assocdata));
bool unit = false;
secp256k1_ctx = secp256k1_context_create(
SECP256K1_CONTEXT_VERIFY | SECP256K1_CONTEXT_SIGN);
setup_tmpctx();
opt_register_noarg("--help|-h", opt_usage_and_exit,
"--generate <pubkey1> <pubkey2>... OR\n"
"--decode <privkey>\n"
"Either create an onion message, or decode one step",
"--unit\n"
"Run unit tests against test vectors",
"Print this message.");
opt_register_noarg("--generate",
opt_set_bool, &generate,
"Generate onion through the given hex pubkeys");
opt_register_noarg("--decode",
opt_set_bool, &decode,
"Decode onion from stdin given the private key");
opt_register_noarg("--unit",
opt_set_bool, &unit,
"Run unit tests against test vectors");
@ -187,9 +178,6 @@ int main(int argc, char **argv)
if (unit) {
run_unit_tests();
} else if (generate) {
} else if (decode) {
}
secp256k1_context_destroy(secp256k1_ctx);
opt_free_table();

Loading…
Cancel
Save