fixed construct_tx_handle_ado() to correctly calculate asset operation amount commitment for burn operation
This commit is contained in:
parent
a3a022119c
commit
57a7cf8451
1 changed files with 1 additions and 1 deletions
|
|
@ -2191,7 +2191,7 @@ namespace currency
|
|||
}
|
||||
ado.descriptor.current_supply -= amount_of_burned_assets; // TODO: consider setting current_supply beforehand, not setting it hear in ad-hoc manner -- sowle
|
||||
|
||||
gen_context.ao_amount_commitment = amount_of_burned_assets * gen_context.ao_asset_id_pt + gen_context.ao_amount_blinding_mask * crypto::c_point_G;
|
||||
gen_context.ao_amount_commitment = gen_context.ao_amount_blinding_mask * crypto::c_point_G - amount_of_burned_assets * gen_context.ao_asset_id_pt;
|
||||
ado.opt_amount_commitment = (crypto::c_scalar_1div8 * gen_context.ao_amount_commitment).to_public_key();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue