Kagome
Polkadot Runtime Engine in C++17
blob.hpp File Reference
#include <array>
#include <fmt/format.h>
#include <boost/functional/hash.hpp>
#include <scale/scale.hpp>
#include "common/buffer.hpp"
#include "common/hexutil.hpp"
#include "macro/endianness_utils.hpp"
Include dependency graph for blob.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  kagome::common::Blob< size_ >
 
struct  std::hash< kagome::common::Blob< N > >
 
struct  fmt::formatter< kagome::common::Blob< N > >
 

Namespaces

 kagome::common
 

Macros

#define KAGOME_BLOB_STRICT_TYPEDEF(space_name, class_name, blob_size)
 

Typedefs

using kagome::common::byte_t = uint8_t
 
using kagome::common::Hash64 = Blob< 8 >
 
using kagome::common::Hash128 = Blob< 16 >
 
using kagome::common::Hash256 = Blob< 32 >
 
using kagome::common::Hash512 = Blob< 64 >
 

Enumerations

enum  kagome::common::BlobError { kagome::common::BlobError::INCORRECT_LENGTH = 1 }
 

Functions

template<size_t N>
std::ostream & kagome::common::operator<< (std::ostream &os, const Blob< N > &blob)
 
 OUTCOME_HPP_DECLARE_ERROR (kagome::common, BlobError)
 

Macro Definition Documentation

#define KAGOME_BLOB_STRICT_TYPEDEF (   space_name,
  class_name,
  blob_size 
)

Copyright Soramitsu Co., Ltd. All Rights Reserved. SPDX-License-Identifier: Apache-2.0

Definition at line 19 of file blob.hpp.

Function Documentation

OUTCOME_HPP_DECLARE_ERROR ( kagome::common  ,
BlobError   
)