src/main.c
// Prints human-readable version of the keypair
// Should be easy in high-level languages as well
Prints human-readable version of the keypair
Should be easy in high-level languages as well
Prints human - readable version of the keypair Should be easy in high - level languages as well
int cmd_printkey(struct KeyPair *kp, FILE *fout) {
  int i;
  fprintf(fout, "public-key: ");
  for(i=0;i<32;i++) fprintf(fout, "%02x", kp->public_key[i]);
  fprintf(fout, "\nprivate-key: ");
  for(i=0;i<64;i++) fprintf(fout, "%02x", kp->private_key[i]);
  fprintf(fout, "\n");
  return 0;
}
int cmd_printkey ( struct KeyPair * kp , FILE * fout ) { int i ; fprintf ( fout , " " ) ; for ( i = 0 ; i < 32 ; i ++ ) fprintf ( fout , " " , kp -> public_key [ i ] ) ; fprintf ( fout , " \n " ) ; for ( i = 0 ; i < 64 ; i ++ ) fprintf ( fout , " " , kp -> private_key [ i ] ) ; fprintf ( fout , " \n " ) ; return 0 ; }
Prints human-readable version of the keypair
Should be easy in high-level languages as well
Prints human - readable version of the keypair Should be easy in high - level languages as well