OlinCoin
Test
src
includes
txs
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
24
ssize_t ser_wallet_entry(
unsigned
char
*dest,
WalletEntry
*wallet_entry);
25
34
unsigned
char
*ser_wallet_entry_alloc(ssize_t *written,
WalletEntry
*wallet_entry);
35
43
ssize_t deser_wallet_entry(
WalletEntry
*dest,
unsigned
char
*src);
44
52
WalletEntry
*deser_wallet_entry_alloc(ssize_t* read,
unsigned
char
*src);
WalletEntry
Definition:
wallet_pool.h:8
Generated by
1.9.3