commit 5d8167676e6c2a256e91070cbeb4504ee412bc9c
parent 32404ad6393baf1651a0d290bc1491779ef15063
Author: NicholasFarrow <nicholas.w.farrow@gmail.com>
Date: Thu, 26 Mar 2020 23:33:54 +1100
Add support for WIF conversion
Diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/niceBit.c b/niceBit.c
@@ -1,7 +1,8 @@
#include <stdio.h>
#include <time.h>
#include <secp256k1.h>
-#include "create_pubkey.h"
+#include "createPubKey.h"
+#include "walletImportFormat.h"
static secp256k1_context *ctx = NULL;
@@ -138,7 +139,8 @@ int main() {
for(int i=0; i<32; i++) {
printf("%02X", seckey[i]);
}
- printf("\n");
+ printf("\nWIF: ");
+ create_wif(seckey);
printf("Public Address: 1%s\n\n", pubaddress);
}