-
Notifications
You must be signed in to change notification settings - Fork 106
feat: Read foreign account inputs and witnesses from transaction inputs #2246
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
Merged
+949
−21
Merged
Changes from all commits
Commits
Show all changes
37 commits
Select commit
Hold shift + click to select a range
0b46cc5
Add initial impl to test integration
sergerad 7dfd8f6
Misc fixes
sergerad 90e7c94
Add from_elements for AccountStorageHeader
sergerad abca24a
Add witness impl
sergerad 38ac256
Split fn
sergerad a69bb1d
Update tests
sergerad 58d5900
Changelog
sergerad 6411474
Merge branch 'next' of github.com:0xPolygonMiden/miden-base into serg…
sergerad 58f9cb3
Update changelog
sergerad dc7bfc3
Move pub util fn
sergerad 1123941
Fix account_id_to_smt_index
sergerad cd19a48
impl TryFrom<Felt> for StorageSlotType
sergerad 1a105b9
TransactionInputError::StorageHeaderNotFound
sergerad 5000592
Seed comment
sergerad 6d6b15e
from_elements -> try_from_elements
sergerad 1c71706
Rm account id arg and add doc comments
sergerad 397f674
Simplify account_id_to_smt_index
sergerad cbae4a4
add foreign account slot names to tx inputs
sergerad 237dd4d
Add serde test
sergerad e13ae1d
Add read_vault_asset_witnesses impl
sergerad 2e43c90
Move tests
sergerad 5251431
Fix comment
sergerad bcb87d6
RM nested map for slot names
sergerad 7ea16e3
Fix serde tx inputs
sergerad 1e249ff
Add from felt test
sergerad 631edda
Simplify tests
sergerad e9a466d
Add read_storage_map_witness impl
sergerad b263e80
For each slot
sergerad 831f13d
Lint
sergerad 436b155
Update changelog
sergerad 0625fdf
Merge branch 'next' into sergerad-tx-inputs-foreign-acc-inputs
bobbinth 99a9af7
chore: minor clean-up
bobbinth 93c8e90
Add TransactionInputsExtractionError type
sergerad c00dd2c
Use vault_root in read_vault_asset_witnesses
sergerad 1c41d3a
Simplify leaf index logic
sergerad 123054c
Rm panics
sergerad 3a0f472
Merge branch 'next' of github.com:0xPolygonMiden/miden-base into serg…
sergerad 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
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
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
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
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
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
Oops, something went wrong.
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.
Can we not use
impl TryFrom<u8> for StorageSlotTypeinstead?I think the caller should first
let byte = u8::try_from(felt)and thenStorageSlotType::try_from(byte). Avoids having to test the impl twice, keeping it up to date in two places, etc.