Kagome
Polkadot Runtime Engine in C++17
key_type.hpp File Reference
Include dependency graph for key_type.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 kagome::crypto
 

Typedefs

using kagome::crypto::KeyTypeId = uint32_t
 Key type identifier. More...
 

Enumerations

enum  kagome::crypto::KeyTypeError { kagome::crypto::KeyTypeError::UNSUPPORTED_KEY_TYPE = 1, kagome::crypto::KeyTypeError::UNSUPPORTED_KEY_TYPE_ID }
 
enum  kagome::crypto::KnownKeyTypeId : KeyTypeId {
  kagome::crypto::KEY_TYPE_BABE = 0x65626162u, kagome::crypto::KEY_TYPE_GRAN = 0x6e617267u, kagome::crypto::KEY_TYPE_ACCO = 0x6f636361u, kagome::crypto::KEY_TYPE_IMON = 0x6e6f6d69u,
  kagome::crypto::KEY_TYPE_AUDI = 0x69647561u, kagome::crypto::KEY_TYPE_LP2P = 0x7032706cu, kagome::crypto::KEY_TYPE_ASGN = 0x6e677361u, kagome::crypto::KEY_TYPE_PARA = 0x61726170u
}
 

Functions

std::string kagome::crypto::encodeKeyTypeIdToStr (KeyTypeId key_type_id)
 makes string representation of KeyTypeId More...
 
KeyTypeId kagome::crypto::decodeKeyTypeIdFromStr (std::string_view str)
 restores KeyTypeId from its string representation More...
 
bool kagome::crypto::isSupportedKeyType (KeyTypeId k)
 checks whether key type value is supported More...
 
 OUTCOME_HPP_DECLARE_ERROR (kagome::crypto, KeyTypeError)
 

Function Documentation

OUTCOME_HPP_DECLARE_ERROR ( kagome::crypto  ,
KeyTypeError   
)