-
Notifications
You must be signed in to change notification settings - Fork 386
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
Add deterministic random bytes in override_random_bytes
#3647
base: main
Are you sure you want to change the base?
Conversation
👋 I see @valentinewallace was un-assigned. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3647 +/- ##
==========================================
- Coverage 89.19% 89.18% -0.01%
==========================================
Files 155 155
Lines 118974 119324 +350
Branches 118974 119324 +350
==========================================
+ Hits 106119 106423 +304
- Misses 10265 10283 +18
- Partials 2590 2618 +28 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Ok, thanks for the feedback! Quick question—would it make more sense to reduce the RNG dependency just enough so |
In an ideal world I think we can drop the |
Got it! I'll work on these removals and see if I can make it work. |
…update `serialized_monitor` with the correct node value
baa728e
to
8080bc0
Compare
Hello @TheBlueMatt, I updated the code as suggested. I removed the Could you please confirm if this reasoning is correct or if there's anything else needed? |
Doh! When I did #3302 and commented above I had not actually bothered to look into why the test needed specific RNG output. Having to have the RNG output match the hard-coded |
Thanks a lot! I saw your comment—I was trying to tackle the RNG issue in a different way, but I realized I was way off and getting stuck. I had already gone back and modified |
Fixes #2827
To ensure deterministic
override_random_bytes
for each node, I first reverted to the state before commit a3b416a and usedkeys_manager.get_secure_random_bytes()
to retrieve the required values. Then, I restored the current state of the code and assigned the collected values to their respective nodes.This is my first PR for LDK, so I’d appreciate any feedback on my approach and possible improvements.