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

[r2r] Sign and verify messages #1256

Merged
merged 24 commits into from
May 6, 2022
Merged

[r2r] Sign and verify messages #1256

merged 24 commits into from
May 6, 2022

Conversation

caglaryucekaya
Copy link

@caglaryucekaya caglaryucekaya commented Apr 18, 2022

Sign&verify message feature for all supported coins, resolves #1220.

  • Add sign_message_hash methods to hash messages for signature
  • Add recover_compact method to recover public keys from messages and signatures
  • Implement sign&verify message methods
  • Add RPC functions and unit tests

@caglaryucekaya caglaryucekaya changed the title Issues/message sign verify [wip] Issues/message sign verify Apr 19, 2022
@caglaryucekaya caglaryucekaya changed the title [wip] Issues/message sign verify [r2r] Sign and verify messages Apr 19, 2022
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Great work! I have a few minor notes.

mm2src/coins/lp_coins.rs Outdated Show resolved Hide resolved
mm2src/coins/lp_coins.rs Outdated Show resolved Hide resolved
mm2src/mm2_bitcoin/keys/src/public.rs Show resolved Hide resolved
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Two more notes 🙂

mm2src/mm2_bitcoin/keys/src/public.rs Outdated Show resolved Hide resolved
mm2src/mm2_bitcoin/keys/src/public.rs Outdated Show resolved Hide resolved
@artemii235 artemii235 changed the title [r2r] Sign and verify messages [wip] Sign and verify messages Apr 22, 2022
@caglaryucekaya caglaryucekaya changed the title [wip] Sign and verify messages [r2r] Sign and verify messages Apr 28, 2022
@artemii235
Copy link
Member

@caglaryucekaya Clippy checks failed on your PR. Please ensure that CI checks pass before you put [r2r] mark. Please also sync your branch with dev.

@caglaryucekaya caglaryucekaya changed the title [r2r] Sign and verify messages [wip] Sign and verify messages Apr 29, 2022
@caglaryucekaya caglaryucekaya changed the title [wip] Sign and verify messages [r2r] Sign and verify messages May 2, 2022
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

One minor change and one possible bug 🙂

mm2src/coins/lightning.rs Outdated Show resolved Hide resolved
mm2src/coins/utxo/utxo_common.rs Outdated Show resolved Hide resolved
@caglaryucekaya caglaryucekaya changed the title [r2r] Sign and verify messages [wip] Sign and verify messages May 2, 2022
@caglaryucekaya caglaryucekaya changed the title [wip] Sign and verify messages [r2r] Sign and verify messages May 2, 2022
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Few more changes requests.

mm2src/mm2_tests.rs Outdated Show resolved Hide resolved
mm2src/mm2_tests.rs Outdated Show resolved Hide resolved
mm2src/mm2_tests/bch_and_slp_tests.rs Outdated Show resolved Hide resolved
mm2src/mm2_tests/bch_and_slp_tests.rs Outdated Show resolved Hide resolved
@caglaryucekaya caglaryucekaya changed the title [r2r] Sign and verify messages [wip] Sign and verify messages May 3, 2022
@caglaryucekaya caglaryucekaya changed the title [wip] Sign and verify messages [r2r] Sign and verify messages May 3, 2022
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Few more minor changes. Please also solve conflicts.

mm2src/coins/utxo/utxo_common.rs Outdated Show resolved Hide resolved
mm2src/coins/eth.rs Outdated Show resolved Hide resolved
mm2src/mm2_tests.rs Outdated Show resolved Hide resolved
artemii235
artemii235 previously approved these changes May 4, 2022
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Great work 👍

@artemii235 artemii235 requested a review from shamardy May 4, 2022 11:43
@artemii235
Copy link
Member

@shamardy Could you please check the Lightning specific part?

shamardy
shamardy previously approved these changes May 4, 2022
Copy link
Collaborator

@shamardy shamardy left a comment

Choose a reason for hiding this comment

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

Great Work 🔥 !

@caglaryucekaya caglaryucekaya dismissed stale reviews from shamardy and artemii235 via ba2aa48 May 5, 2022 11:58
Copy link
Member

@artemii235 artemii235 left a comment

Choose a reason for hiding this comment

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

Reapproving.

@artemii235 artemii235 merged commit 128d096 into dev May 6, 2022
@artemii235 artemii235 deleted the issues/message-sign-verify branch May 6, 2022 11:53
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