libbtc
bitcoinclibrary
base58.h
Go to the documentation of this file.
1 
24 #ifndef __LIBBTC_BASE58_H__
25 #define __LIBBTC_BASE58_H__
26 
27 #include "btc.h"
28 
29 #ifdef __cplusplus
30 extern "C" {
31 #endif
32 
33 #include <stdint.h>
34 
35 LIBBTC_API int btc_base58_encode_check(const uint8_t* data, int len, char* str, int strsize);
36 LIBBTC_API int btc_base58_decode_check(const char* str, uint8_t* data, size_t datalen);
37 
38 LIBBTC_API int btc_base58_encode(char* b58, size_t* b58sz, const void* data, size_t binsz);
39 LIBBTC_API int btc_base58_decode(void* bin, size_t* binszp, const char* b58);
40 
41 
42 #ifdef __cplusplus
43 }
44 #endif
45 
46 #endif //__LIBBTC_BASE58_H__
#define LIBBTC_API
Definition: btc.h:59
LIBBTC_API int btc_base58_encode(char *b58, size_t *b58sz, const void *data, size_t binsz)
Definition: base58.c:154
LIBBTC_API int btc_base58_decode(void *bin, size_t *binszp, const char *b58)
Definition: base58.c:42
LIBBTC_API int btc_base58_encode_check(const uint8_t *data, int len, char *str, int strsize)
Definition: base58.c:198
LIBBTC_API int btc_base58_decode_check(const char *str, uint8_t *data, size_t datalen)
Definition: base58.c:219