#include <HashAlgorithmHelper.hpp>
|
virtual std::vector< uint8_t > | ripemd160 (const std::vector< uint8_t > &data)=0 |
|
virtual std::vector< uint8_t > | sha256 (const std::vector< uint8_t > &data)=0 |
|
virtual std::vector< uint8_t > | keccak256 (const std::vector< uint8_t > &data)=0 |
|
Helper class for commonly used crypto algorithms.
◆ keccak256()
virtual std::vector<uint8_t> ledger::core::api::HashAlgorithmHelper::keccak256 |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
pure virtual |
Hash algorithm used in ethereum.
- Parameters
-
data | in bytes, message to hash |
- Returns
- 256 bits hashed message
◆ ripemd160()
virtual std::vector<uint8_t> ledger::core::api::HashAlgorithmHelper::ripemd160 |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
pure virtual |
RACE Integrity Primitives Evaluation Message Digest (used in Bitcoin).
- Parameters
-
data | in bytes, message to hash |
- Returns
- 160 bits hashed message
◆ sha256()
virtual std::vector<uint8_t> ledger::core::api::HashAlgorithmHelper::sha256 |
( |
const std::vector< uint8_t > & |
data | ) |
|
|
pure virtual |
Secure Hash Algorithm (used in Bitcoin).
- Parameters
-
data | in bytes, message to hash |
- Returns
- 256 bits hashed message
The documentation for this class was generated from the following file: