Skip to content
Snippets Groups Projects
Commit 96f04ada authored by pavel.uhanov's avatar pavel.uhanov
Browse files

[*] add full pkey in node tool show command

parent a8a35a9b
No related branches found
No related tags found
3 merge requests!1842Hotfixes 19.02,!1840Backport 13637,!1796backport-13637
Subproject commit 6d171b26714aa3ee86f4fed3c14df4d760a39c1b Subproject commit c87ad031775e562f54ee9d071343e0f9e927676f
...@@ -594,7 +594,10 @@ static int s_cert_pkey_show(int argc, const char **argv) ...@@ -594,7 +594,10 @@ static int s_cert_pkey_show(int argc, const char **argv)
printf("Can't serialize cert %s", argv[4]); printf("Can't serialize cert %s", argv[4]);
exit(-135); exit(-135);
} }
printf("%s\n", dap_chain_hash_fast_to_str_static(&l_hash));
char *l_pkey_str = dap_cert_get_pkey_str(l_cert, "hex");
printf("hash: %s\npkey: %s\n", dap_chain_hash_fast_to_str_static(&l_hash), l_pkey_str);
DAP_DELETE(l_pkey_str);
return 0; return 0;
} }
...@@ -615,7 +618,9 @@ static int s_wallet_pkey_show(int argc, const char **argv) ...@@ -615,7 +618,9 @@ static int s_wallet_pkey_show(int argc, const char **argv)
printf("Can't serialize wallet %s", argv[4]); printf("Can't serialize wallet %s", argv[4]);
exit(-135); exit(-135);
} }
printf("%s\n", dap_chain_hash_fast_to_str_static(&l_hash)); char *l_pkey_str = dap_chain_wallet_get_pkey_str(l_wallet, "hex");
printf("hash: %s\npkey: %s\n", dap_chain_hash_fast_to_str_static(&l_hash), l_pkey_str);
DAP_DELETE(l_pkey_str);
return 0; return 0;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment