Loading...
Searching...
No Matches
certificate_tools.cpp File Reference
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <unistd.h>
#include "common/crypto/key_generator.h"
#include "common/crypto/signature_verifier.h"

Go to the source code of this file.

Functions

void WriteKey (const std::string &key, const std::string &file_name)
 
KeyInfo ReadKey (const std::string &file_name)
 
CertificateInfo GenerateCertificateInfo (const KeyInfo &admin_pub_key, const KeyInfo &pri_key, const KeyInfo &pub_key, int64_t node_id)
 
int main (int argc, char **argv)
 

Function Documentation

◆ GenerateCertificateInfo()

CertificateInfo GenerateCertificateInfo ( const KeyInfo &  admin_pub_key,
const KeyInfo &  pri_key,
const KeyInfo &  pub_key,
int64_t  node_id 
)

Definition at line 65 of file certificate_tools.cpp.

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 75 of file certificate_tools.cpp.

◆ ReadKey()

KeyInfo ReadKey ( const std::string &  file_name)

Definition at line 42 of file certificate_tools.cpp.

◆ WriteKey()

void WriteKey ( const std::string &  key,
const std::string &  file_name 
)

Definition at line 30 of file certificate_tools.cpp.