CatapultServer
v0.5.0.1 (Elephant)
|
constexpr auto cbegin() const noexcept
Returns a const iterator to the first byte.
Definition: ByteArray.h:81
const uint8_t Checksum_Size
Definition: Address.cpp:29
void Sha3_256(const RawBuffer &dataBuffer, Hash256 &hash) noexcept
Calculates the 256-bit SHA3 hash of dataBuffer into hash.
Definition: Hashes.cpp:81
bool IsValidAddress(const Address &address, NetworkIdentifier networkIdentifier)
Returns a value indicating whether or not the given address is valid for the network identified by ne...
Definition: Address.cpp:70
void Base32Encode(const RawBuffer &data, const MutableRawString &encodedData)
Definition: Base32.cpp:116
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
constexpr const uint8_t * data() const noexcept
Returns a const pointer to the underlying array.
Definition: ByteArray.h:70
#define CATAPULT_THROW_RUNTIME_ERROR_1(MESSAGE, PARAM1)
Macro used to throw a catapult runtime error with a single parameter.
Definition: exceptions.h:171
constexpr size_t Hash160_Size
Definition: src/catapult/types.h:35
constexpr size_t Address_Encoded_Size
Definition: src/catapult/types.h:60
bool IsValidEncodedAddress(const std::string &encoded, NetworkIdentifier networkIdentifier)
Definition: Address.cpp:81
constexpr auto begin() const noexcept
Returns a const iterator to the first byte.
Definition: ByteArray.h:91
bool TryBase32Decode(const RawString &encodedData, const MutableRawBuffer &data)
Definition: Base32.cpp:137
Address PublicKeyToAddress(const Key &publicKey, NetworkIdentifier networkIdentifier)
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
Definition: Address.cpp:50
std::string AddressToString(const Address &address)
Creates an encoded address from an address.
Definition: Address.cpp:38
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
utils::ByteArray< Address_Decoded_Size, Address_tag > Address
Definition: src/catapult/types.h:63
Address StringToAddress(const std::string &str)
Creates an address from an encoded address (encoded).
Definition: Address.cpp:31
constexpr size_t Address_Decoded_Size
Definition: src/catapult/types.h:59
Definition: AddressExtractionExtension.cpp:28
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41
void Keccak_256(const RawBuffer &dataBuffer, Hash256 &hash) noexcept
Calculates the 256-bit Keccak hash of dataBuffer into hash.
Definition: Hashes.cpp:89
BasicRawBuffer< const uint8_t > RawBuffer
A const binary buffer.
Definition: RawBuffer.h:62
void Ripemd160(const RawBuffer &dataBuffer, Hash160 &hash) noexcept
Calculates the ripemd160 hash of dataBuffer into hash.
Definition: Hashes.cpp:44