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: swap dalek bulletproofs for bulletproofs-plus #4213

Merged

Conversation

hansieodendaal
Copy link
Contributor

Description

Swapped out Dalek Bulletproofs for Tari Bulletproofs+ using the most basic range proof creation and verification

Motivation and Context

How Has This Been Tested?

@hansieodendaal hansieodendaal force-pushed the ho_bulletproofs_plus branch 7 times, most recently from dc10c2d to 1f1d425 Compare June 23, 2022 15:43
@hansieodendaal hansieodendaal changed the title [wip] feat: swap dalek bulletproofs for bulletproofs-plus feat: swap dalek bulletproofs for bulletproofs-plus Jun 23, 2022
@hansieodendaal hansieodendaal force-pushed the ho_bulletproofs_plus branch 2 times, most recently from 25bca9c to 8895b3c Compare June 24, 2022 09:12
Swapped out Dalek Bulletproofs for Tari Bulletproofs+ using the most
basic range proof creation and verification

update to references + igor genesis block
@@ -610,27 +607,14 @@ impl OutputManagerHandle {
}
}

pub async fn get_outputs_by(&mut self, q: OutputBackendQuery) -> Result<Vec<UnblindedOutput>, OutputManagerError> {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be a bad merge

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

O, that was a piece of unused code that I cleaned up.

let mut rewound_outputs: Vec<(UnblindedOutput, BulletRangeProof)> = Vec::new();
for output in outputs {
// TODO: Only outputs with scripts `== script!(Nop)` is recover-able - can this be improved?
if output.script != script!(Nop) {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this really the case?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The previous version of the code had this exact check - if a rewound was successful but the script was not script!(Nop) it dropped the output. Maybe this is latent defect? That is why I logged a TODO, but I will also register an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants