diff --git a/cellframe-sdk b/cellframe-sdk index 6d171b26714aa3ee86f4fed3c14df4d760a39c1b..c87ad031775e562f54ee9d071343e0f9e927676f 160000 --- a/cellframe-sdk +++ b/cellframe-sdk @@ -1 +1 @@ -Subproject commit 6d171b26714aa3ee86f4fed3c14df4d760a39c1b +Subproject commit c87ad031775e562f54ee9d071343e0f9e927676f diff --git a/sources/main_node_tool.c b/sources/main_node_tool.c index 7c9b4aad984f9e08c86bda8552e10aa548af58c3..8a715e49045e37583a64b4e40e318bcaa535782b 100644 --- a/sources/main_node_tool.c +++ b/sources/main_node_tool.c @@ -594,7 +594,10 @@ static int s_cert_pkey_show(int argc, const char **argv) printf("Can't serialize cert %s", argv[4]); 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; } @@ -615,7 +618,9 @@ static int s_wallet_pkey_show(int argc, const char **argv) printf("Can't serialize wallet %s", argv[4]); 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; }