-
Notifications
You must be signed in to change notification settings - Fork 5
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
feat: implement transaction [WPB-11400] [WPB-10917] #732
Open
SimonThormeyer
wants to merge
79
commits into
main
Choose a base branch
from
feat/transaction
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 1 commit
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
5b3a4a4
chore: move global lock into MlsCentral
augustocdias ef5889d
feat: create a keystore transaction struct to be used in the context
augustocdias ab35220
Creating the context object in order to provide transactional support…
augustocdias b646e97
Expose the context through the bindings [WPB-10918] (#698)
augustocdias 0feb30e
refactor: refactor tests to transactional api
SimonThormeyer 2a208c8
chore: rename mlsext trait
SimonThormeyer 33ad8ef
chore: use renamed mlsext trait
SimonThormeyer a922ccc
chore: implement EntityTransactionExt for ProteusIdentity
SimonThormeyer 0eaa544
chore: implement EntityTransactionExt for ProteusPrekey
SimonThormeyer 3e872cf
chore: implement EntityTransactionExt for ProteusSession
SimonThormeyer 068cbc5
chore: implement find_all() on unique entity
SimonThormeyer ca6bfcd
chore: implement save() for unique entities
SimonThormeyer dab52f8
chore: introduce merge key
SimonThormeyer c997e9a
chore: provide a separate delete function that fails on missing id
SimonThormeyer 9153a65
chore: use the separate delete function that fails on missing id
SimonThormeyer 3a8758f
chore: implement downcast on Entity
SimonThormeyer e7fc8ee
chore: add itertools to keystore crate
SimonThormeyer b4b7a31
feat: implement in-memory cache on transaction
SimonThormeyer a6e21aa
chore: use updated transaction constructor
SimonThormeyer 4d20c9b
chore: fix callsites of new_transaction()
SimonThormeyer 4955e64
refactor: redirect fetch calls to transaction
SimonThormeyer 0b805a5
chore: redirect mutating operations to transaction
SimonThormeyer 27f6d09
chore: provide commit_transaction() on connection
SimonThormeyer 75b5fb8
chore: implement credential deletion on connection
SimonThormeyer 0e1b5ba
chore: implement mls traits on connection
SimonThormeyer 653504d
chore: remove mutating functions from entitybase trait
SimonThormeyer 246b999
chore: refactor context to have transaction handled in keystore
SimonThormeyer 666c19b
chore: resolve compile errors after having transaction handled in key…
SimonThormeyer bb0635d
chore: fix credential implementation
SimonThormeyer ebb15aa
chore: fix deadlock in e2ei rotation
SimonThormeyer 3a041a7
chore: move test utils functions to client context
SimonThormeyer 342b505
chore: introduce mutex on client identities
SimonThormeyer 92196b9
chore: fix compile errors after introducing mutex on client identities
SimonThormeyer ec6b11d
chore: add rollback_transaction() method to connection
SimonThormeyer 9a934fe
chore: fix merge key for MlsPending message
SimonThormeyer 637ef58
refactor: rename id field on MlsPendingMessage
SimonThormeyer 1cda79e
refactor: improve keystore test ergonomics
SimonThormeyer c6b8f0d
chore: fix compile errors after keystore test refactoring
SimonThormeyer a35b896
chore: fix wipe and close keystore
SimonThormeyer 3a08d8d
chore: update tests to open and close transactions, fix compile errors
SimonThormeyer 6c18eb8
chore: move transaction creation to core struct
SimonThormeyer 8617715
chore: move context module
SimonThormeyer 9fe6686
chore: move proteus functions to central context
SimonThormeyer 32b81bb
chore: fix compile errors in exposed functions on CoreCrypto
SimonThormeyer 52c990e
chore: restructure modules in crypto-ffi
SimonThormeyer 7fafad1
chore: expose proteus functions via uniffi
SimonThormeyer a4cd09a
chore: rename MlsContext to CoreCryptoContext
SimonThormeyer 582087f
chore: kotlin wrapper: expose proteus functions on context
SimonThormeyer 6a68978
chore: remove implementation error from keystore
SimonThormeyer 07908cb
chore: implement entity base for enrollment
SimonThormeyer 487450d
chore: export and use proteus_impl macro
SimonThormeyer 89f42b9
chore: expose proteus functions on context for wasm
SimonThormeyer aed9502
chore: fix wasm compile errors in keystore and crypto crate
SimonThormeyer 0a9a713
chore: expose context api for proteus functions in wasm wrapper
SimonThormeyer c888ba7
chore: fix interop test
SimonThormeyer 73d6f42
chore: update interop ffi client to 1.0.2 api
SimonThormeyer 43e37e3
chore: use ffi client in interop test
SimonThormeyer 89c1502
style: run cargo fmt
SimonThormeyer 5cd9814
chore: fix compile errors in e2ei_rotate()
SimonThormeyer b3cde2a
chore: add e2ei_rotate() to context and bindings
SimonThormeyer f2d2c16
chore: remove transaction lock
SimonThormeyer 3b5f6fb
chore: fix wasm close and wipe
SimonThormeyer 2c4a2b8
chore: fix corrupted transaction state after commit_accepted()
SimonThormeyer a030fef
chore: fix transaction creation for iOS
SimonThormeyer 9a7e060
chore: decouple dynamic dispatch boiler plate in transaction
SimonThormeyer 069a586
chore: dynamic dispatch module in compliance with cargo features
SimonThormeyer 231129b
chore: compliance with proteus feature in context
SimonThormeyer cfde9e6
chore: fix independent compilation of cargo features
SimonThormeyer 44ae62a
chore: fix transactions in bindings
SimonThormeyer 9068533
chore: incorporate fix in uniffi bindings
SimonThormeyer 4174af6
chore: use transaction api in deprecated functions in TS wrapper
SimonThormeyer e69254c
chore: remove deprecated functions from wasm bindings
SimonThormeyer 5b5d3cd
chore: keep proteus error code from context
SimonThormeyer 618ee4e
chore: handle transaction error in typescript wrapper
SimonThormeyer 96ef935
chore: handle transaction error in kotlin wrapper
SimonThormeyer 2b2b306
chore: fix benches
SimonThormeyer e5e8a12
chore: remove transactional crypto provider
SimonThormeyer 7ce86a2
chore: fix docs
SimonThormeyer 82b335e
chore: test that interaction with invalid context throws error
SimonThormeyer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a test for this?