10 namespace detail {
class pke_impl; }
16 typedef std::vector<char>
bytes;
43 std::shared_ptr<detail::pke_impl> my;
72 std::shared_ptr<detail::pke_impl> my;
78 template<
typename Stream>
86 template<
typename Stream>
92 template<
typename Stream>
100 template<
typename Stream>
107 void to_variant(
const public_key& bi, variant& v );
109 void to_variant(
const private_key& bi, variant& v );
bytes encrypt(const bytes &) const
friend void generate_key_pair(public_key &, private_key &)
void sign(const sha1 &digest, array< char, 2048/8 > &sig) const
bytes decrypt(const char *bytes, size_t len) const
private_key & operator=(const private_key &p)
public_key & operator=(const public_key &p)
bool verify(const sha1 &digest, const array< char, 2048/8 > &sig) const
bytes encrypt(const char *data, size_t len) const
friend void generate_key_pair(public_key &, private_key &)
bytes decrypt(const bytes &) const
Concept for reading and writing characters.
void unpack(Stream &s, std::deque< T > &value)
void pack(Stream &s, const std::deque< T > &value)
fc::sha256 digest(const T &value)
std::vector< char > bytes
bool operator==(const array< T, N > &a, const array< T, N > &b)
void generate_key_pair(public_key &, private_key &)
void from_variant(const fc::variant &v, sysio::chain::chain_id_type &cid)
void to_variant(const sysio::chain::shared_public_key &var, fc::variant &vo)
const GenericPointer< typename T::ValueType > T2 T::AllocatorType & a