#include <bank.h>
Definition at line 116 of file bank.h.
UnsignedCoin::UnsignedCoin |
( |
| ) |
|
|
inline |
UnsignedCoin::UnsignedCoin |
( |
BIGNUM * |
bnCoinID | ) |
|
|
inline |
UnsignedCoin::~UnsignedCoin |
( |
| ) |
|
|
inline |
void UnsignedCoin::Clear |
( |
| ) |
|
|
inline |
void UnsignedCoin::Dump |
( |
| ) |
|
|
inline |
Definition at line 177 of file bank.h.
void DumpNumber(BIO *out, const char *szTitle, const BIGNUM *bn, const char *szTrailer=_NL)
boolean UnsignedCoin::GenerateCoinNumber |
( |
BIGNUM * |
bnNumber, |
|
|
const PublicBank & |
bank |
|
) |
| |
|
inline |
Definition at line 150 of file bank.h.
158 unsigned char *xplusd=
159 static_cast<unsigned char *
>(alloca(bank.
PrimeLength()));
162 memset(xplusd,
'\0',nCoinLength);
165 for(
int n=0 ; n < nDigestIterations ; ++n)
172 BN_bin2bn(xplusd,nCoinLength+nDigestIterations*
DIGEST_LENGTH,bnNumber);
void DumpNumber(BIO *out, const char *szTitle, const BIGNUM *bn, const char *szTrailer=_NL)
void HexDump(BIO *out, const char *szTitle, const unsigned char *acBuf, int nLength)
BIGNUM* UnsignedCoin::ID |
( |
| ) |
|
|
inline |
void UnsignedCoin::Random |
( |
int |
nCoinLength | ) |
|
|
inline |
Definition at line 137 of file bank.h.
145 assert(BN_num_bytes(
m_bnCoinID) == nCoinLength);
void DumpNumber(BIO *out, const char *szTitle, const BIGNUM *bn, const char *szTrailer=_NL)
void UnsignedCoin::ReadBIO |
( |
BIO * |
bio | ) |
|
void UnsignedCoin::Set |
( |
const BIGNUM * |
bnCoinID | ) |
|
|
inline |
void UnsignedCoin::WriteBIO |
( |
BIO * |
bio | ) |
|
BIGNUM* UnsignedCoin::m_bnCoinID |
|
protected |
The documentation for this class was generated from the following file:
- /usr/local/src/opentxs/deps/lucre/include/lucre/bank.h