Skip to content

Commit 41b2605

Browse files
authored
Merge pull request #105 from jeffro256/rm_make_carrot_address_spend_pubkey
carrot_core: rm `make_carrot_address_spend_pubkey()`
2 parents 64190fe + f977225 commit 41b2605

File tree

2 files changed

+0
-29
lines changed

2 files changed

+0
-29
lines changed

src/carrot_core/address_utils.cpp

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -67,19 +67,4 @@ void make_carrot_subaddress_scalar(const crypto::public_key &account_spend_pubke
6767
derive_scalar(transcript.data(), transcript.size(), &s_address_generator, subaddress_scalar_out.data);
6868
}
6969
//-------------------------------------------------------------------------------------------------------------------
70-
void make_carrot_address_spend_pubkey(const crypto::public_key &account_spend_pubkey,
71-
const crypto::secret_key &s_generate_address,
72-
const std::uint32_t j_major,
73-
const std::uint32_t j_minor,
74-
crypto::public_key &address_spend_pubkey_out)
75-
{
76-
// k^j_subscal = H_n(K_s, j_major, j_minor, s^j_gen)
77-
crypto::secret_key subaddress_scalar;
78-
make_carrot_subaddress_scalar(account_spend_pubkey, s_generate_address, j_major, j_minor, subaddress_scalar);
79-
80-
// K^j_s = k^j_subscal * K_s
81-
address_spend_pubkey_out = rct::rct2pk(rct::scalarmultKey(
82-
rct::pk2rct(account_spend_pubkey), rct::sk2rct(subaddress_scalar)));
83-
}
84-
//-------------------------------------------------------------------------------------------------------------------
8570
} //namespace carrot

src/carrot_core/address_utils.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,19 +77,5 @@ void make_carrot_subaddress_scalar(const crypto::public_key &account_spend_pubke
7777
const std::uint32_t j_major,
7878
const std::uint32_t j_minor,
7979
crypto::secret_key &subaddress_scalar_out);
80-
/**
81-
* brief: make_carrot_address_spend_pubkey - K^j_s
82-
* K^j_s = k^j_subscal * K_s
83-
* param: account_spend_pubkey - K_s = k_gi G + k_ps U
84-
* param: s_generate_address - s_ga
85-
* param: j_major -
86-
* param: j_minor -
87-
* outparam: address_spend_pubkey_out - K^j_s
88-
*/
89-
void make_carrot_address_spend_pubkey(const crypto::public_key &account_spend_pubkey,
90-
const crypto::secret_key &s_generate_address,
91-
const std::uint32_t j_major,
92-
const std::uint32_t j_minor,
93-
crypto::public_key &address_spend_pubkey_out);
9480

9581
} //namespace carrot

0 commit comments

Comments
 (0)