YPC  0.2.0
eth_hash.h
1 #pragma once
2 #include <cstdint>
3 
4 namespace ypc {
5 namespace crypto {
6 
7 class eth_hash {
8 public:
9  static uint32_t hash_256(const uint8_t *msg, uint32_t msg_size,
10  uint8_t *hash);
11 
12  static uint32_t get_msg_hash_size();
13 
14  static uint32_t msg_hash(const uint8_t *raw_msg, uint32_t msg_size,
15  uint8_t *hash, uint32_t hash_size);
16 };
17 
18 } // namespace crypto
19 } // namespace ypc
ypc::crypto::eth_hash
Definition: eth_hash.h:7