41 public_key_data serialize()
const;
42 public_key_point_data serialize_ecc_point()
const;
73 static std::string
to_base58(
const public_key_data &key );
76 unsigned int fingerprint()
const;
80 static public_key from_key_data(
const public_key_data& v );
81 static bool is_canonical(
const compact_signature& c );
112 private_key_secret get_secret()
const;
122 compact_signature sign_compact(
const fc::sha256&
digest,
bool require_canonical =
true )
const;
143 static fc::sha256 get_secret(
const EC_KEY *
const k );
151 int child = 0,
int parent_fp = 0, uint8_t depth = 0 );
156 extended_key_data serialize_extended()
const;
158 std::string str()
const;
164 int child_num, parent_fp;
172 int child = 0,
int parent_fp = 0, uint8_t depth = 0 );
180 extended_key_data serialize_extended()
const;
182 std::string str()
const;
192 int child_num, parent_fp;
204 commitment_type
blind(
const blind_factor_type&
blind, uint64_t value );
205 blind_factor_type
blind_sum(
const std::vector<blind_factor_type>& blinds, uint32_t non_neg );
207 bool verify_sum(
const std::vector<commitment_type>& commits,
const std::vector<commitment_type>& neg_commits, int64_t excess );
208 bool verify_range( uint64_t& min_val, uint64_t& max_val,
const commitment_type& commit,
const range_proof_type& proof );
211 const commitment_type& commit,
212 const blind_factor_type& commit_blind,
213 const blind_factor_type& nonce,
216 uint64_t actual_value
222 const blind_factor_type& nonce,
225 commitment_type commit,
226 const range_proof_type& proof );
239 template<
typename Stream>
248 template<
typename Stream>
255 template<
typename Stream>
260 unpack( s, sec, _max_depth - 1 );
264 template<
typename Stream>
Used to forward declare value types.
std::string to_base58(const char *d, size_t s)
bool verify_range(uint64_t &min_val, uint64_t &max_val, const commitment_type &commit, const range_proof_type &proof)
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
unsigned int fingerprint() const
zero_initialized_array< unsigned char, 78 > extended_key_data
bool verify_sum(const std::vector< commitment_type > &commits, const std::vector< commitment_type > &neg_commits, int64_t excess)
void unpack(Stream &s, fc::ecc::private_key &pk, uint32_t _max_depth)
range_proof_info range_get_info(const range_proof_type &proof)
fc::sha256 blind_factor_type
friend bool operator<(const private_key &a, const private_key &b)
Defines types and macros used to provide reflection.
public_key_data serialize() const
unsigned int fingerprint() const
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
void pack(Stream &s, const fc::ecc::private_key &pk, uint32_t _max_depth)
std::string to_base58() const
FC_REFLECT_TYPENAME(fc::log_message)
commitment_type blind(const blind_factor_type &blind, uint64_t value)
friend bool operator==(const private_key &a, const private_key &b)
fc::sha256 digest(const T &value)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
contains only the public point of an elliptic curve key.
zero_initialized_array< unsigned char, 65 > public_key_point_data
the full non-compressed version of the ECC point
zero_initialized_array< unsigned char, 33 > commitment_type
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
std::string to_base58() const
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
static private_key regenerate(const fc::sha256 &secret)
std::vector< char > range_proof_type
bool verify_range_proof_rewind(blind_factor_type &blind_out, uint64_t &value_out, string &message_out, const blind_factor_type &nonce, uint64_t &min_val, uint64_t &max_val, commitment_type commit, const range_proof_type &proof)
private_key_secret get_secret() const
zero_initialized_array< unsigned char, 33 > public_key_data
range_proof_type range_proof_sign(uint64_t min_value, const commitment_type &commit, const blind_factor_type &commit_blind, const blind_factor_type &nonce, int8_t base10_exp, uint8_t min_bits, uint64_t actual_value)
blind_factor_type blind_sum(const std::vector< blind_factor_type > &blinds, uint32_t non_neg)
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
std::vector< char > from_base58(const std::string &base58_str)
fc::sha256 private_key_secret
friend bool operator!=(const public_key &a, const public_key &b)
an elliptic curve private key.
zero_initialized_array< unsigned char, 65 > compact_signature
zero_initialized_array< unsigned char, 72 > signature
friend bool operator==(const public_key &a, const public_key &b)
friend bool operator!=(const private_key &a, const private_key &b)