Epicbox Cancellation Requests & Multi-Party Reflection [DO NOT MERGE] - #1429
Draft
who-biz wants to merge 19 commits into
Draft
Epicbox Cancellation Requests & Multi-Party Reflection [DO NOT MERGE]#1429who-biz wants to merge 19 commits into
who-biz wants to merge 19 commits into
Conversation
who-biz
force-pushed
the
epicbox-cancel-reflect
branch
from
August 10, 2026 22:38
8ede0c5 to
37d8f28
Compare
julian-CStack
marked this pull request as draft
August 11, 2026 17:46
who-biz
force-pushed
the
epicbox-cancel-reflect
branch
2 times, most recently
from
August 12, 2026 14:47
5b2be02 to
37d8f28
Compare
who-biz
force-pushed
the
epicbox-cancel-reflect
branch
from
August 12, 2026 19:09
0b12ecf to
96b3ec3
Compare
- Probably will run into more
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.
Do not merge this yet (mostly here for easily referenced diff and a working build tree). Much needs changed before production (epic repo dependency updates, epicbox server upgrades by all instance admins, etc). But all is functional and working well with the prospective upgrade codebases, so far in my testing. Will cover more testing tomorrow with a clean build too. As I'm doing that, I'll write up a full-throated summary and replace this (placeholder) text.
I would also like to clean up wallet lifetime. As it stands, wallet is instantiated with
Then, no cleanup for the
Boxoccurs even ondelete_walletcalls. While I haven't yet tested to verify - seems like wallet lifetime remains for entirety of process execution, for every wallet scenario. To this point: I'd also like to clean uplistener_cancel.Quick references for bundled submodules, dependencies, new epicbox server code:
flutter_libepiccash: https://github.com/who-biz/flutter_libepiccash/tree/ebox-cancel-txepic-wallet: https://github.com/who-biz/epic-wallet/tree/ebox-cancel-txsepicboxnodejs: https://github.com/who-biz/epicboxnodejs/tree/cancel-txFFI was overhauled in these changes as well, for safer memory handling and full utilization of rust ownership for safety. Nullable pointers have been removed everywhere they could be in the FFI, and intermediate variables have been minimized as well.
Local cancellation of slates is a fallback case now, and a persistent 32 character identifier is now chosen & assigned by sender to a given epicbox-relayed slatepack. On
postSlate()calls, the epicbox server persists this ID, alongside the existingepicboxmsgids (message IDs change with each step of ITX). These are structurally different, intentionally. That persistent ID becomes our cancellation mechanism for requests (signature-gated and requires proof of tx membership).Once a cancellation is requested, the epicbox server removes the slates-in-progress from slates DB, and adds a tombstone for them in a newly added
cancelledSlatesDB. Receiver or sender (if disconnected) is notified upon next connection to epicbox of the cancellation. Both receiver & sender can request a cancellation, and this is reflected to the other party over epicbox protocol extensions. The protocol message is wired into a local cancellation for both parties, which is gated by the newly addedepicbox_tx_id.New methods involved for cancellation can be called from CLI as follows: