summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmir Taaki <genjix@riseup.net>2014-05-08 18:50:33 (GMT)
committer Amir Taaki <genjix@riseup.net>2014-05-08 18:50:33 (GMT)
commit55739d72d5b0d5daf3cd006f411048e5f60f442f (patch)
tree74f38cadfe1e2d9dc5aff0561c55404bb6fda813
parent12f09e2566458185f9e25c6cc3d8e481510f3535 (diff)
get stealth-uncover-secret command to work.
-rw-r--r--src/Makefile.am2
-rw-r--r--src/stealth-uncover-secret.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 5469936..e9f890f 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -64,7 +64,7 @@ sx_stealth_initiate_LDADD = ${libbitcoin_LIBS} ${libwallet_LIBS}
sx_stealth_uncover_SOURCES = stealth-uncover.cpp
sx_stealth_uncover_LDADD = ${libbitcoin_LIBS} ${libwallet_LIBS}
-sx_stealth_uncover_secret_SOURCES = stealth-uncover.cpp
+sx_stealth_uncover_secret_SOURCES = stealth-uncover-secret.cpp
sx_stealth_uncover_secret_LDADD = ${libbitcoin_LIBS} ${libwallet_LIBS}
sx_stealth_addr_SOURCES = stealth-addr.cpp
diff --git a/src/stealth-uncover-secret.cpp b/src/stealth-uncover-secret.cpp
index 3acd399..1904550 100644
--- a/src/stealth-uncover-secret.cpp
+++ b/src/stealth-uncover-secret.cpp
@@ -14,9 +14,9 @@ int main(int argc, char** argv)
ec_point ephem_pubkey = decode_hex(argv[1]);
ec_secret scan_secret = decode_hex_digest<ec_secret>(argv[2]);
ec_secret spend_secret = decode_hex_digest<ec_secret>(argv[3]);
- ec_point pubkey = uncover_stealth_secret(
+ ec_secret secret = uncover_stealth_secret(
ephem_pubkey, scan_secret, spend_secret);
- std::cout << pubkey << std::endl;
+ std::cout << secret << std::endl;
return 0;
}