CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace crypto {
41 void final(std::vector<Hash256>& tree);
45 static size_t TreeSize(
size_t leafCount);
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
void Sha3_256(const RawBuffer &dataBuffer, Hash256 &hash) noexcept
Calculates the 256-bit SHA3 hash of dataBuffer into hash.
Definition: Hashes.cpp:81
std::vector< Hash256 > m_hashes
Definition: MerkleHashBuilder.h:48
KeccakBuilder< Sha3ModeTag, Hash256_tag > Sha3_256_Builder
Sha3_256_Builder.
Definition: Hashes.h:85
Builder for creating a merkle hash.
Definition: MerkleHashBuilder.h:28
void update(const Hash256 &hash)
Adds hash to the merkle hash.
Definition: MerkleHashBuilder.cpp:72
uint64_t size
Definition: MemoryCounters.cpp:65
MerkleHashBuilder(size_t capacity=0)
Creates a new merkle hash builder with the specified initial capacity.
Definition: MerkleHashBuilder.cpp:68
Definition: AddressExtractionExtension.cpp:28
constexpr size_t Hash256_Size
Definition: src/catapult/types.h:34
static size_t TreeSize(size_t leafCount)
Calculates the number of nodes in a merkle tree with leafCount leaves.
Definition: MerkleHashBuilder.cpp:90
void final(Hash256 &hash)
Finalizes the merkle hash into hash.
Definition: MerkleHashBuilder.cpp:76