smite: extend accept_channel oracle with sanity and key reuse checks - #259
Draft
NishantBansal2003 wants to merge 6 commits into
Draft
NishantBansal2003 wants to merge 6 commits into
NishantBansal2003 wants to merge 6 commits into
Conversation
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
NishantBansal2003
marked this pull request as draft
September 17, 2026 12:18
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
Signed-off-by: Nishant Bansal <nishant.bansal.282003@gmail.com>
NishantBansal2003
force-pushed
the
more-accept-chan-oracles
branch
from
September 19, 2026 09:12
cc96bd6 to
2a6f201
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ref: #209 (comment)
Some more oracles added in this PR:
open_channelchain_hash != regtestchannel_reserve_satoshis >= funding_satoshisdust_limit_satoshis > 10_000satto_self_delay > 2016feerate_per_kw == 0for non 0FC channelsaccept_channeldust_limit_satoshis > 10_000sathtlc_minimum_msat > max_htlc_value_in_flight_msathtlc_minimum_msat > open_channel.funding_satoshisto_self_delay == 0max_accepted_htlcs == 0open_channelandaccept_channelper_commitment_pointshould not be reusedNotes
to_self_delayto 6 inaccept_channelon regtest and 144 on mainnet, so I think we should only check thatto_self_delay != 0feerate_per_kwfloor to 1 on regtest and 253 on mainnet when accepting theopen_channelmessage, so I think we should only check thatfeerate_per_kw != 0