Dogecoin Address Generator

Dogecoin
Address Generator
Powered by libdogecoin v0.1
 Public Key
 Private Key
C code used
#include "libdogecoin.h"
#include <stdio.h>
#include <string.h>

// Example of how to use libdogecoin API functions:
// gcc ./functions/json/dogecoinaddress.c -I./include -L./lib -ldogecoin -o dogecoinaddress

int main() {
  dogecoin_ecc_start();

  // CALLING ADDRESS FUNCTIONS
  // create variables
  size_t privkeywiflen = 53;
  size_t pubkeylen = 35;
  char wif_privkey[privkeywiflen];
  char p2pkh_pubkey[pubkeylen];

  // keypair generation
  if (generatePrivPubKeypair(wif_privkey, p2pkh_pubkey, 0)) {
    printf("{'libdogecoin':'v0.1','dogecoinAddressPrivateKey':'%s','dogecoinAddressPublicKey':'%s'}", wif_privkey, p2pkh_pubkey);
  }

  dogecoin_ecc_stop();
}
// after generating will create a file called dogecoinaddress that you can execute using ./dogecoinaddress that will echo an Dogecoin private and public key in JSON format

PHP code used
<?php
    // we execute the dogecoin address generator and retrive the json format
    exec('./dogecoinaddress 2>&1', $output, $retval);
    $dogecoinaddress = json_decode(str_replace("'", '"', $output[0]));

    //to get the Dogecoin Address Public Key we use
    $dogecoinaddress->dogecoinAddressPublicKey;

    //to get the Dogecoin Address Private Key we use
    $dogecoinaddress->dogecoinAddressPrivateKey;
?>