Skip to content

Commit ef41333

Browse files
committed
[Refactor] Replace tabs with spaces
1 parent 604d365 commit ef41333

File tree

5 files changed

+487
-487
lines changed

5 files changed

+487
-487
lines changed

src/bloom.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,14 @@ CBloomFilter::CBloomFilter(unsigned int nElements, double nFPRate, unsigned int
2929
* - nElements * log(fp rate) / ln(2)^2
3030
* We ignore filter parameters which will create a bloom filter larger than the protocol limits
3131
*/
32-
vData(std::min((unsigned int)(-1 / LN2SQUARED * nElements * log(nFPRate)), MAX_BLOOM_FILTER_SIZE * 8) / 8),
32+
vData(std::min((unsigned int)(-1 / LN2SQUARED * nElements * log(nFPRate)), MAX_BLOOM_FILTER_SIZE * 8) / 8),
3333
/**
3434
* The ideal number of hash functions is filter size * ln(2) / number of elements
3535
* Again, we ignore filter parameters which will create a bloom filter with more hash functions than the protocol limits
3636
* See https://en.wikipedia.org/wiki/Bloom_filter for an explanation of these formulas
3737
*/
38-
isFull(false),
39-
isEmpty(false),
38+
isFull(false),
39+
isEmpty(false),
4040
nHashFuncs(std::min((unsigned int)(vData.size() * 8 / nElements * LN2), MAX_HASH_FUNCS)),
4141
nTweak(nTweakIn),
4242
nFlags(nFlagsIn)

src/libzerocoin/Coin.h

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ class PublicCoin
5353
PublicCoin(const ZerocoinParams* p);
5454

5555
/**Generates a public coin
56-
*
57-
* @param p cryptographic paramters
58-
* @param coin the value of the commitment.
59-
* @param denomination The denomination of the coin.
60-
*/
56+
*
57+
* @param p cryptographic paramters
58+
* @param coin the value of the commitment.
59+
* @param denomination The denomination of the coin.
60+
*/
6161
PublicCoin(const ZerocoinParams* p, const CBigNum& coin, const CoinDenomination d);
6262
const CBigNum& getValue() const { return this->value; }
6363

@@ -149,31 +149,31 @@ class PrivateCoin
149149
CPrivKey privkey;
150150

151151
/**
152-
* @brief Mint a new coin.
153-
* @param denomination the denomination of the coin to mint
154-
* @throws ZerocoinException if the process takes too long
155-
*
156-
* Generates a new Zerocoin by (a) selecting a random serial
157-
* number, (b) committing to this serial number and repeating until
158-
* the resulting commitment is prime. Stores the
159-
* resulting commitment (coin) and randomness (trapdoor).
160-
**/
152+
* @brief Mint a new coin.
153+
* @param denomination the denomination of the coin to mint
154+
* @throws ZerocoinException if the process takes too long
155+
*
156+
* Generates a new Zerocoin by (a) selecting a random serial
157+
* number, (b) committing to this serial number and repeating until
158+
* the resulting commitment is prime. Stores the
159+
* resulting commitment (coin) and randomness (trapdoor).
160+
**/
161161
void mintCoin(const CoinDenomination denomination);
162162

163163
/**
164-
* @brief Mint a new coin using a faster process.
165-
* @param denomination the denomination of the coin to mint
166-
* @throws ZerocoinException if the process takes too long
167-
*
168-
* Generates a new Zerocoin by (a) selecting a random serial
169-
* number, (b) committing to this serial number and repeating until
170-
* the resulting commitment is prime. Stores the
171-
* resulting commitment (coin) and randomness (trapdoor).
172-
* This routine is substantially faster than the
173-
* mintCoin() routine, but could be more vulnerable
174-
* to timing attacks. Don't use it if you think someone
175-
* could be timing your coin minting.
176-
**/
164+
* @brief Mint a new coin using a faster process.
165+
* @param denomination the denomination of the coin to mint
166+
* @throws ZerocoinException if the process takes too long
167+
*
168+
* Generates a new Zerocoin by (a) selecting a random serial
169+
* number, (b) committing to this serial number and repeating until
170+
* the resulting commitment is prime. Stores the
171+
* resulting commitment (coin) and randomness (trapdoor).
172+
* This routine is substantially faster than the
173+
* mintCoin() routine, but could be more vulnerable
174+
* to timing attacks. Don't use it if you think someone
175+
* could be timing your coin minting.
176+
**/
177177
void mintCoinFast(const CoinDenomination denomination);
178178
};
179179

0 commit comments

Comments
 (0)