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

use OS generated secrets #1753

Merged
merged 2 commits into from
Apr 26, 2023
Merged

use OS generated secrets #1753

merged 2 commits into from
Apr 26, 2023

Conversation

onur-ozkan
Copy link
Member

use OS generated secrets in maker_swap and tendermint_coin::get_sender_trade_fee_for_denom to achieve cryptographically secure randomness

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.

Thank you for the fix! Only one question.

mm2src/common/common.rs Outdated Show resolved Hide resolved
shamardy
shamardy previously approved these changes Apr 20, 2023
@shamardy
Copy link
Collaborator

@Alrighttt can you please check if this PR fixes the issue?

Signed-off-by: ozkanonur <work@onurozkan.dev>
@onur-ozkan onur-ozkan merged commit c5fbee7 into dev Apr 26, 2023
@shamardy shamardy deleted the os_rng branch April 26, 2023 22:38
@Alrighttt
Copy link
Member

Sorry for the delay. Consider this me signing off for approval.

I will add manual testing of this to my backlog of tasks. It's unlikely we would ever fail to generate a secret, but I am curious to know when exactly that scenario is possible. I would like to investigate how this could impact various platforms.

@shamardy
Copy link
Collaborator

It's unlikely we would ever fail to generate a secret

#1753 (comment), but even failing to generate a secret won't cause any problems since the swap won't start.

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

Successfully merging this pull request may close these issues.

3 participants