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

PSET: Add (de)serialization of WitnessUtxo's confidential fields #131

Merged
merged 1 commit into from
Sep 1, 2020

Conversation

altafan
Copy link
Collaborator

@altafan altafan commented Sep 1, 2020

This fixes the TODOS left for serializing/deserializing the range and surjection proofs that might be contained in the WitnessUtxo field of a partial input.

Without this, when adding a confidential WitnessUtxo to an input with the updater's AddInWitnessUtxo() method, the serialization of the pset will contain only the commitments of the utxo, missing the proofs.
In the same way, when deserializing a WitnessUtxo that contains proofs, these isn't be deserialized causing the parsed WitnessUtxo to be incomplete.

@tiero please review this.

@tiero tiero changed the title Add (de)serialization of WitnessUtxo's confidential fields PSET: Add (de)serialization of WitnessUtxo's confidential fields Sep 1, 2020
@tiero tiero merged commit 3e772f5 into vulpemventures:master Sep 1, 2020
@altafan altafan deleted the fix-pset-serialization branch November 17, 2020 14:29
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.

None yet

2 participants