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

Changed pub_nonce_sum and msg_to_sign to be public functions #557

Merged
merged 2 commits into from
Mar 5, 2021

Conversation

jafalter
Copy link
Contributor

@jafalter jafalter commented Dec 31, 2020

Just like pub_blind_sum(&self, secp: &secp::Secp256k1) is a public function pub_nonce_sum(&self, secp: &secp::Secp256k1) and msg_to_sign(&self) should be too, as wallets that generate signatures outside of the slate context (not by using fill_round_2) have to have access to those values.

For instance in cases where signing requires a different approach than what is implemented in fill_round_2 such as where a secret key and nonce for a coin is split between two parties rather than one.

@jafalter jafalter changed the title [Dev] changed pub_nonce_sume to be public [Dev] changed pub_nonce_sum and msg_to_sign to be pub Dec 31, 2020
@jafalter jafalter changed the title [Dev] changed pub_nonce_sum and msg_to_sign to be pub Changed pub_nonce_sum and msg_to_sign to be public functions Dec 31, 2020
Copy link
Contributor

@DavidBurkett DavidBurkett left a comment

Choose a reason for hiding this comment

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

Seems reasonable to me. @quentinlesceller or @antiochp, can you merge this?

Copy link
Member

@quentinlesceller quentinlesceller left a comment

Choose a reason for hiding this comment

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

👍 LGTM

@quentinlesceller quentinlesceller merged commit b3d4d03 into mimblewimble:master Mar 5, 2021
bayk added a commit to mwcproject/mwc-wallet that referenced this pull request Aug 2, 2024
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.

3 participants