Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(base_layer)!: new output field for minimum value range proof #4319

Merged
merged 15 commits into from
Jul 20, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
using real minimum values in transaction protocol
mrnaveira committed Jul 20, 2022
commit 9deb06c124e47c0af78e4bb3dba13383763fc65e
Original file line number Diff line number Diff line change
@@ -32,7 +32,6 @@ use tari_crypto::{

use crate::transactions::{
crypto_factories::CryptoFactories,
tari_amount::MicroTari,
transaction_components::{EncryptedValue, TransactionOutput, TransactionOutputVersion},
transaction_protocol::{
build_challenge,
@@ -114,7 +113,7 @@ impl SingleReceiverTransactionProtocol {
.map_err(|_| TPE::EncryptionError)?
.unwrap_or_default();

let minimum_value_promise = MicroTari::zero();
let minimum_value_promise = sender_info.minimum_value_promise;

let partial_metadata_signature = TransactionOutput::create_partial_metadata_signature(
TransactionOutputVersion::get_current_version(),
2 changes: 1 addition & 1 deletion base_layer/wallet/src/output_manager_service/service.rs
Original file line number Diff line number Diff line change
@@ -694,7 +694,7 @@ where
&commitment,
single_round_sender_data.amount,
)?;
let minimum_value_promise = MicroTari::zero();
let minimum_value_promise = single_round_sender_data.minimum_value_promise;
let output = DbUnblindedOutput::rewindable_from_unblinded_output(
UnblindedOutput::new_current_version(
single_round_sender_data.amount,