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

Ensure assemble always loads TX data locally, and on-chain enforcement of TXID uniqueness #472

Merged
merged 24 commits into from
Dec 16, 2024

Conversation

peterbroadhurst
Copy link
Contributor

@peterbroadhurst peterbroadhurst commented Dec 10, 2024

  • Add interface to TXManager to query transactions from local sender DB
    • With caching for performance as we query very quickly after insert
    • With query interface for paging TXs in for private tx mgr after restart
    • With by-ID semantics for private TX mgr before servicing an assemble
    • With cache-backed resolution of function to ABI
  • Wire up new interface to private TX mgr
    • Removed duplicative struct type definitions, and reconciled the code quite a bit as a result.
    • Updated the testbed to work with the new code interfaces (still has its own implementation of all the structures)
    • Ensure we validate the domain on private transactions before storing
    • Ensure the E2E passes - pulling in Update examples and run during e2e build #479 as part of this as main has an issue with E2E
  • Update Pente to ensure at-most-once use of TXIDs on-chain
    • I'm deferring noto and zeto as the replay attack considerations there are slightly different, so @jimthematrix and @awrichar can consider those individually.

@peterbroadhurst peterbroadhurst changed the title Provide interface with caching on TXMgr to query txns with resolved fns Ensure assemble always loads TX data locally, and on-chain enforcement of TXID uniqueness Dec 10, 2024
peterbroadhurst and others added 15 commits December 10, 2024 13:37
…separate out TX input data

Signed-off-by: Peter Broadhurst <[email protected]>
Signed-off-by: Andrew Richardson <[email protected]>
Signed-off-by: Andrew Richardson <[email protected]>
Signed-off-by: Peter Broadhurst <[email protected]>
@peterbroadhurst peterbroadhurst marked this pull request as ready for review December 14, 2024 00:39
Signed-off-by: Andrew Richardson <[email protected]>
Copy link
Contributor

@hosie hosie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@peterbroadhurst peterbroadhurst merged commit b812a05 into main Dec 16, 2024
7 checks passed
@peterbroadhurst peterbroadhurst deleted the one-time-intents branch December 16, 2024 18:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants