CatapultServer  v0.5.0.1 (Elephant)
NamespaceIdGenerator.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "NamespaceConstants.h"
23 
24 namespace catapult { namespace model {
25 
27  NamespaceId GenerateRootNamespaceId(const RawString& name) noexcept;
28 
30  NamespaceId GenerateNamespaceId(NamespaceId parentId, const RawString& name) noexcept;
31 }}
catapult::model::GenerateRootNamespaceId
NamespaceId GenerateRootNamespaceId(const RawString &name) noexcept
Generates a root namespace id given name.
Definition: NamespaceIdGenerator.cpp:27
NamespaceConstants.h
catapult::Namespace_Base_Id
constexpr NamespaceId Namespace_Base_Id(0)
Base id for namespaces.
catapult::crypto::KeccakBuilder
Builder for building a hash.
Definition: Hashes.h:61
catapult::NamespaceId
utils::BaseValue< uint64_t, NamespaceId_tag > NamespaceId
Definition: plugins/txes/namespace/src/types.h:28
catapult::utils::BaseValue
Immutable wrapper for basic types, to provide some type-safety.
Definition: BaseValue.h:100
catapult::crypto::KeccakBuilder::final
void final(OutputType &output) noexcept
Finalize hash calculation. Returns result in output.
Definition: Hashes.cpp:145
Hashes.h
catapult::crypto::KeccakBuilder::update
void update(const RawBuffer &dataBuffer) noexcept
Updates the state of hash with data inside dataBuffer.
Definition: Hashes.cpp:134
catapult::utils::RawString
A const string buffer.
Definition: RawBuffer.h:68
NamespaceIdGenerator.h
catapult::model::GenerateNamespaceId
NamespaceId GenerateNamespaceId(NamespaceId parentId, const RawString &name) noexcept
Generates a namespace id given parentId and namespace name.
Definition: NamespaceIdGenerator.cpp:31
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::utils::ByteArray< Hash256_Size, Hash256_tag >