Click here to Skip to main content
16,019,107 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have a function that returns a bitcoin address but I want to perform base58check encoding on it to convert it to a bitcoin address.

unsigned char address[]="008f26a17cbbc941a9dbe63a1f1c69591f08aab94bd586ad5e"


The address is stored in an unsigned char array.

any suggestions or libraries how can I do it in c language.

What I have tried:

I looked for the same problem on google but it gave me code for c++. I want to do it strictly in the c program. Is there any way I could perform base58 encoding in the c program.
Posted
Updated 27-Mar-20 2:47am
Comments
ZurdoDev 27-Mar-20 8:47am    
It's the one that came right after base56 encoding. They skipped 57 which is probably why you are confused.
Richard MacCutchan 27-Mar-20 8:49am    
Hey, I never got past base 8 encoding.
ZurdoDev 27-Mar-20 8:47am    
If you have c++ can't you rewrite it in C?
CPallini 27-Mar-20 9:45am    
C programmers don't 'look for the same problem on google'.
(If they really have to, then, first write themselves the Google search engine code, then use it).

1 solution

OK, this is what it is: Base58Check encoding - Bitcoin Wiki[^]
 
Share this answer
 
Comments
CPallini 27-Mar-20 9:40am    
5.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900