First completed round trip test of sFUL/FUSD -> FULM
After all of the trials and tribulations, we finally have a viable prototype! The code is working for conversions of all kinds. There are a number of strange and annoying bugs still present, like the rings in the CLI wallet are misbehaving at times. But we have a viable product.
This commit is contained in:
@@ -99,9 +99,12 @@ namespace multisig
|
||||
// - later, we add in the components held by other participants
|
||||
cryptonote::keypair in_ephemeral;
|
||||
//crypto::hash uniqueness = crypto::cn_fast_hash(reinterpret_cast<void*>(&real_output_index), sizeof(size_t));
|
||||
crypto::ec_scalar uniqueness;
|
||||
|
||||
// Populate this struct if you want to make use of multisig for Fulmo!!!
|
||||
assert(false);
|
||||
if (!cryptonote::generate_key_image_helper(keys, subaddresses, out_key, tx_public_key, additional_tx_public_keys, real_output_index, uniqueness, in_ephemeral, ki, keys.get_device()))
|
||||
cryptonote::origin_data origin_tx_data;
|
||||
|
||||
if (!cryptonote::generate_key_image_helper(keys, subaddresses, out_key, tx_public_key, additional_tx_public_keys, real_output_index, in_ephemeral, ki, keys.get_device(), origin_tx_data))
|
||||
return false;
|
||||
std::unordered_set<crypto::key_image> used;
|
||||
|
||||
|
||||
@@ -109,9 +109,10 @@ static bool compute_keys_for_sources(
|
||||
if (src.real_output >= src.outputs.size())
|
||||
return false;
|
||||
|
||||
// Get the uniqueness for this TX
|
||||
crypto::ec_scalar uniqueness;
|
||||
// Populate this struct if you want to make use of multisig for Fulmo!!!
|
||||
assert(false);
|
||||
cryptonote::origin_data origin_tx_data;
|
||||
|
||||
if (not cryptonote::generate_key_image_helper(
|
||||
account_keys,
|
||||
subaddresses,
|
||||
@@ -119,10 +120,10 @@ static bool compute_keys_for_sources(
|
||||
src.real_out_tx_key,
|
||||
src.real_out_additional_tx_keys,
|
||||
src.real_output_in_tx_index,
|
||||
uniqueness,
|
||||
tmp_keys,
|
||||
tmp_key_image,
|
||||
hwdev
|
||||
hwdev,
|
||||
origin_tx_data
|
||||
)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user