BitShares-Core
7.0.2
BitShares blockchain node software and command-line wallet software
|
Go to the documentation of this file.
151 int child = 0,
int parent_fp = 0, uint8_t depth = 0 );
158 std::string
str()
const;
164 int child_num, parent_fp;
172 int child = 0,
int parent_fp = 0, uint8_t depth = 0 );
182 std::string
str()
const;
192 int child_num, parent_fp;
207 bool verify_sum(
const std::vector<commitment_type>& commits,
const std::vector<commitment_type>& neg_commits, int64_t excess );
216 uint64_t actual_value
239 template<
typename Stream>
248 template<
typename Stream>
255 template<
typename Stream>
260 unpack( s, sec, _max_depth - 1 );
264 template<
typename Stream>
extended_public_key derive_child(int i) const
extended_public_key derive_normal_child(int i) const
friend bool operator!=(const private_key &a, const private_key &b)
public_key & operator=(public_key &&pk)
bool verify_range(uint64_t &min_val, uint64_t &max_val, const commitment_type &commit, const range_proof_type &proof)
unsigned int fingerprint() const
fc::sha256 digest(const T &value)
extended_key_data serialize_extended() const
unsigned int fingerprint() const
extended_private_key derive_child(int i) const
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)
zero_initialized_array< unsigned char, 72 > signature
blind_factor_type blind_sum(const std::vector< blind_factor_type > &blinds, uint32_t non_neg)
FC_REFLECT_TYPENAME(fc::log_message)
void unpack(Stream &s, flat_set< T, A... > &value, uint32_t _max_depth)
private_key & operator=(private_key &&pk)
commitment_type blind(const blind_factor_type &blind, uint64_t value)
private_key_secret get_secret() const
fc::sha256 private_key_secret
fc::sha512 get_shared_secret(const public_key &pub) const
static private_key generate_from_seed(const fc::sha256 &seed, const fc::sha256 &offset=fc::sha256())
std::string to_base58() const
Allows to convert current public key object into base58 number.
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
void from_variant(const variant &var, flat_set< T, A... > &vo, uint32_t _max_depth)
Defines types and macros used to provide reflection.
static extended_public_key deserialize(const extended_key_data &data)
static extended_public_key from_base58(const std::string &base58)
public_key_point_data serialize_ecc_point() const
an elliptic curve private key.
static private_key generate()
range_proof_info range_get_info(const range_proof_type &proof)
public_key add(const fc::sha256 &offset) const
std::string to_base58() const
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)
friend bool operator<(const private_key &a, const private_key &b)
compact_signature sign_compact(const fc::sha256 &digest, bool require_canonical=true) const
zero_initialized_array< unsigned char, 33 > public_key_data
public_key child(const fc::sha256 &offset) const
zero_initialized_array< unsigned char, 33 > commitment_type
extended_public_key(const public_key &k, const sha256 &c, int child=0, int parent_fp=0, uint8_t depth=0)
void to_variant(const flat_set< T, A... > &var, variant &vo, uint32_t _max_depth)
static extended_private_key deserialize(const extended_key_data &data)
private_key child(const fc::sha256 &offset) const
friend bool operator!=(const public_key &a, const public_key &b)
extended_private_key derive_normal_child(int i) const
public_key get_public_key() const
extended_public_key get_extended_public_key() const
#define FC_ASSERT(TEST,...)
Checks a condition and throws an assert_exception if the test is FALSE.
friend bool operator==(const public_key &a, const public_key &b)
extended_key_data serialize_extended() const
stores null, int64, uint64, double, bool, string, std::vector<variant>, and variant_object's.
extended_private_key(const private_key &k, const sha256 &c, int child=0, int parent_fp=0, uint8_t depth=0)
extended_private_key derive_hardened_child(int i) const
static public_key from_base58(const std::string &b58)
fc::sha256 blind_factor_type
#define FC_REFLECT(TYPE, MEMBERS)
Specializes fc::reflector for TYPE.
zero_initialized_array< unsigned char, 65 > compact_signature
static extended_private_key from_base58(const std::string &base58)
std::vector< char > range_proof_type
static extended_private_key generate_master(const std::string &seed)
zero_initialized_array< unsigned char, 78 > extended_key_data
static private_key regenerate(const fc::sha256 &secret)
std::string to_base58() const
bool verify_sum(const std::vector< commitment_type > &commits, const std::vector< commitment_type > &neg_commits, int64_t excess)
Used to forward declare value types.
friend bool operator==(const private_key &a, const private_key &b)
public_key_data serialize() const
void pack(Stream &s, const flat_set< T, A... > &value, uint32_t _max_depth)