-
Notifications
You must be signed in to change notification settings - Fork 407
Improve ChannelKeys TODOs #567
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
Comments
Also, we should probably fix up the APIs to be sensible post-559 pre-0.0.11. |
We should make signing function as pure function do avoid any side-effect and return a Result<Signature,Error> to propagate back error to caller. See #559 (comment) and #562 (comment) |
The ChannelKeys stuff should never be pure functions - many cases of channel keys require internal state to enforce that we dont eg sign two different local commitment transactions. They should, of course, return Result<>s, though maybe I misunderstood your point. |
Should this have been closed by #598? |
Yep! |
We currently have TODOs in public documentation, which isn't OK, but also we should replace the with real documentation before the next release.
The text was updated successfully, but these errors were encountered: