mirror of
https://github.com/PurpleI2P/i2pd-tools.git
synced 2025-05-01 13:12:30 +02:00
pretty print sig key types
This commit is contained in:
parent
e0caac60de
commit
bb9dda6ba9
3 changed files with 81 additions and 3 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue