Kagome
Polkadot Runtime Engine in C++17
ss58_codec.hpp File Reference
#include <gsl/span>
#include "outcome/outcome.hpp"
#include "primitives/account.hpp"
Include dependency graph for ss58_codec.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 kagome::crypto
 
 kagome::primitives
 

Enumerations

enum  kagome::primitives::Ss58Error { kagome::primitives::Ss58Error::INVALID_LENGTH = 1, kagome::primitives::Ss58Error::INVALID_CHECKSUM }
 

Functions

outcome::result< AccountId > kagome::primitives::decodeSs58 (std::string_view account_address, const crypto::Hasher &hasher) noexcept
 
std::string kagome::primitives::encodeSs58 (uint8_t account_type, const AccountId &id, const crypto::Hasher &hasher) noexcept
 
 OUTCOME_HPP_DECLARE_ERROR (kagome::primitives, Ss58Error)
 

Variables

constexpr size_t kagome::primitives::kSs58ChecksumLength = 2
 
constexpr size_t kagome::primitives::kSs58Length
 

Function Documentation

OUTCOME_HPP_DECLARE_ERROR ( kagome::primitives  ,
Ss58Error   
)