195 void to_variant(
const ecc::private_key& var, variant& vo );
196 void from_variant(
const variant& var, ecc::private_key& vo );
197 void to_variant(
const ecc::public_key& var, variant& vo );
198 void from_variant(
const variant& var, ecc::public_key& vo );
202 template<
typename Stream>
210 template<
typename Stream>
216 template<
typename Stream>
224 template<
typename Stream>
an elliptic curve private key.
static private_key generate()
friend bool operator<(const private_key &a, const private_key &b)
public_key get_public_key() const
private_key_secret get_secret() const
private_key & operator=(private_key &&pk)
private_key child(const fc::sha256 &offset) const
friend bool operator!=(const private_key &a, const private_key &b)
static private_key generate_from_seed(const fc::sha256 &seed, const fc::sha256 &offset=fc::sha256())
fc::sha512 get_shared_secret(const public_key &pub) const
compact_signature sign_compact(const fc::sha256 &digest, bool require_canonical=true) const
unsigned int fingerprint() const
static private_key regenerate(const fc::sha256 &secret)
friend bool operator==(const private_key &a, const private_key &b)
contains only the public point of an elliptic curve key.
public_key_data serialize() const
public_key child(const fc::sha256 &offset) const
std::string to_base58() const
Allows to convert current public key object into base58 number.
unsigned int fingerprint() const
friend bool operator==(const public_key &a, const public_key &b)
friend bool operator!=(const public_key &a, const public_key &b)
public_key & operator=(public_key &&pk)
static public_key from_base58(const std::string &b58)
public_key_point_data serialize_ecc_point() const
Used to forward declare value types.
Concept for reading and writing characters.
fc::array< char, 65 > public_key_point_data
the full non-compressed version of the ECC point
fc::sha256 blind_signature
fc::array< char, 33 > commitment_type
fc::sha256 blind_factor_type
fc::array< unsigned char, 65 > compact_signature
fc::array< char, 78 > extended_key_data
fc::array< char, 72 > signature
fc::array< char, 33 > public_key_data
fc::sha256 private_key_secret
void unpack(Stream &s, std::deque< T > &value)
void pack(Stream &s, const std::deque< T > &value)
fc::sha256 digest(const T &value)
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
#define FC_REFLECT_TYPENAME(TYPE)
#define FC_REFLECT_DERIVED(TYPE, INHERITS, MEMBERS)
Specializes fc::reflector for TYPE where type inherits other reflected classes.
const data_type & serialize() const
public_key_type get_public_key() const
public_key_shim public_key_type
signature_type sign(const sha256 &digest, bool require_canonical=true) const
signature_shim signature_type
sha512 generate_shared_secret(const public_key_type &pub_key) const
static private_key_shim generate()
public_key_shim public_key_type
public_key_type recover(const sha256 &digest, bool check_canonical) const