#include <authority.hpp>
Definition at line 12 of file authority.hpp.
◆ shared_public_key()
Definition at line 13 of file authority.hpp.
13 :
shared_public_key_data pubkey
◆ operator public_key_type()
Definition at line 16 of file authority.hpp.
16 {
19 [&](const auto& k1r1em) {
20 public_key_storage = k1r1em;
21 },
26 public_key_storage =
pub;
27 }
29 return std::move(public_key_storage);
30 }
std::variant< ecc::public_key_shim, r1::public_key_shim, webauthn::public_key, em::public_key_shim > storage_type
static const Segment ds(Segment::ds)
void unpack(Stream &s, std::deque< T > &value)
chainbase::shared_string shared_string
overloaded(Ts...) -> overloaded< Ts... >
◆ to_string()
std::string sysio::chain::shared_public_key::to_string |
( |
| ) |
const |
|
inline |
Definition at line 32 of file authority.hpp.
32 {
34 }
std::string to_string(const fc::yield_function_t &yield=fc::yield_function_t()) const
fc::crypto::public_key public_key_type
◆ operator== [1/3]
◆ operator== [2/3]
Definition at line 58 of file authority.hpp.
58 {
59 if(
l.pubkey.index() !=
r._storage.index())
60 return false;
61
64 return k1._data == std::get<fc::ecc::public_key_shim>(
r._storage)._data;
65 },
67 return em._data == std::get<fc::em::public_key_shim>(
r._storage)._data;
68 },
70 return r1._data == std::get<fc::crypto::r1::public_key_shim>(
r._storage)._data;
71 },
76 return pub == std::get<fc::crypto::webauthn::public_key>(
r._storage);
77 }
79 }
static const Opmask k1(1)
◆ operator== [3/3]
Definition at line 38 of file authority.hpp.
38 {
39 if(lhs.pubkey.index() != rhs.pubkey.index())
40 return false;
41
44 return k1._data == std::get<fc::ecc::public_key_shim>(rhs.pubkey)._data;
45 },
47 return em._data == std::get<fc::em::public_key_shim>(rhs.pubkey)._data;
48 },
50 return r1._data == std::get<fc::crypto::r1::public_key_shim>(rhs.pubkey)._data;
51 },
53 return wa == std::get<shared_string>(rhs.pubkey);
54 }
55 }, lhs.pubkey);
56 }
◆ pubkey
The documentation for this struct was generated from the following file: