OlinCoin
Test
ser_wallet.h
1#pragma once
2
3#include "wallet_pool.h"
4#include "ser_key.h"
5
6/******************************************************************************
7 * Wallet Entries
8 ******************************************************************************/
9
10#define WALLET_ENTRY_SER_LEN \
11 ( \
12 KEYPAIR_SER_LEN + \
13 sizeof(((WalletEntry*)0)->amt) + \
14 sizeof(((WalletEntry*)0)->spent) \
15 )
16
24ssize_t ser_wallet_entry(unsigned char *dest, WalletEntry *wallet_entry);
25
34unsigned char *ser_wallet_entry_alloc(ssize_t *written, WalletEntry *wallet_entry);
35
43ssize_t deser_wallet_entry(WalletEntry *dest, unsigned char *src);
44
52WalletEntry *deser_wallet_entry_alloc(ssize_t* read, unsigned char *src);
Definition: wallet_pool.h:8