mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2024-12-06 19:26:18 +01:00
pretty print sig key types
This commit is contained in:
+3
-1
@@ -4,6 +4,8 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <unistd.h>
|
||||
#include "common/key.hpp"
|
||||
|
||||
|
||||
int main(int argc, char * argv[])
|
||||
{
|
||||
@@ -58,7 +60,7 @@ int main(int argc, char * argv[])
|
||||
std::cout << "Destination: " << dest->ToBase64() << std::endl;
|
||||
std::cout << "Destination Hash: " << ident.ToBase64() << std::endl;
|
||||
std::cout << "B32 Address: " << ident.ToBase32() << ".b32.i2p" << std::endl;
|
||||
std::cout << "Signature Type: " << (int) dest->GetSigningKeyType() << std::endl;
|
||||
std::cout << "Signature Type: " << SigTypeToName(dest->GetSigningKeyType()) << std::endl;
|
||||
std::cout << "Encryption Type: " << (int) dest->GetCryptoKeyType() << std::endl;
|
||||
} else {
|
||||
if(print_full) {
|
||||
|
||||
Reference in New Issue
Block a user