#include <public_key.hpp>
Definition at line 23 of file public_key.hpp.
◆ storage_type
◆ public_key() [1/6]
fc::crypto::public_key::public_key |
( |
| ) |
|
|
default |
◆ public_key() [2/6]
fc::crypto::public_key::public_key |
( |
public_key && | | ) |
|
|
default |
◆ public_key() [3/6]
fc::crypto::public_key::public_key |
( |
const public_key & | | ) |
|
|
default |
◆ public_key() [4/6]
fc::crypto::public_key::public_key |
( |
const signature & | c, |
|
|
const sha256 & | digest, |
|
|
bool | check_canonical = true ) |
Definition at line 22 of file public_key.cpp.
23 :
_storage(std::visit(recovery_visitor(
digest, check_canonical), c._storage))
24 {
25 }
fc::sha256 digest(const T &value)
◆ public_key() [5/6]
fc::crypto::public_key::public_key |
( |
storage_type && | other_storage | ) |
|
|
inline |
◆ public_key() [6/6]
fc::crypto::public_key::public_key |
( |
const string & | base58str | ) |
|
|
explicit |
◆ operator=()
◆ to_string()
Definition at line 75 of file public_key.cpp.
76 {
77 auto data_str = std::visit(base58str_visitor<storage_type, config::public_key_prefix, 0>(yield),
_storage);
78
81 return std::string(config::public_key_legacy_prefix) + data_str;
82 } else {
83 return std::string(config::public_key_base_prefix) + "_" + data_str;
84 }
85 }
◆ valid()
bool fc::crypto::public_key::valid |
( |
| ) |
const |
◆ which()
size_t fc::crypto::public_key::which |
( |
| ) |
const |
◆ operator!=
◆ operator<
Definition at line 100 of file public_key.cpp.
101 {
103 }
static bool apply(const T &a, const T &b)
◆ operator<<
std::ostream & operator<< |
( |
std::ostream & | s, |
|
|
const public_key & | k ) |
|
friend |
Definition at line 87 of file public_key.cpp.
87 {
88 s <<
"public_key(" << k.to_string() <<
')';
90 }
◆ operator==
Definition at line 92 of file public_key.cpp.
92 {
94 }
static bool apply(const T &a, const T &b)
◆ private_key
◆ reflector< public_key >
◆ _storage
The documentation for this class was generated from the following files: