28 lines
611 B
C
28 lines
611 B
C
#include <stdarg.h>
|
|
#include <stdbool.h>
|
|
#include <stdint.h>
|
|
#include <stdlib.h>
|
|
|
|
typedef struct CWallet {
|
|
char *msg_key;
|
|
char *master_key;
|
|
char *second_key;
|
|
char *backup_key;
|
|
} CWallet;
|
|
|
|
struct CWallet new_wallet(const char *msg);
|
|
|
|
struct CWallet restore_wallet(const struct CWallet *cw);
|
|
|
|
struct CWallet reset_wallet(const struct CWallet *cw);
|
|
|
|
void free_cwallet(struct CWallet cw);
|
|
|
|
char *get_address(const struct CWallet *cw);
|
|
|
|
char *generate_sec_key(const struct CWallet *cw);
|
|
|
|
char *sign(const struct CWallet *cw, const char *msg);
|
|
|
|
char *sign_for_tran(const struct CWallet *cw, const char *msg);
|