-
Notifications
You must be signed in to change notification settings - Fork 14
refactor: Refactor dataset order tag ignoring code #332
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
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
5645e3d
refactor: Use a common function to ignore dataset bits
zguesmi a211292
test: Test all combinations of TEE tags in dataset and workerpool orders
zguesmi 36b9e32
test: Clean
zguesmi 0f0480d
test: Update assertDatasetDealCompatibility tests
zguesmi 5985ac7
test: Use different salts
zguesmi 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 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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,14 +1,8 @@ | ||
| // SPDX-FileCopyrightText: 2020-2025 IEXEC BLOCKCHAIN TECH <[email protected]> | ||
| // SPDX-License-Identifier: Apache-2.0 | ||
|
|
||
| /** | ||
| * Tag constants: | ||
| * - Bit 0: TEE | ||
| * - Bit 1: Scone | ||
| * - Bit 2: Gramine | ||
| * - Bit 3: TDX | ||
| * - Bit 4: GPU (0x10) | ||
| */ | ||
| // Tag constants. | ||
| // For TEE bits positions, see IexecPoco1Facet.sol#_ignoreTeeFramework | ||
| export const TAG_STANDARD = '0x0000000000000000000000000000000000000000000000000000000000000000'; | ||
| export const TAG_TEE = '0x0000000000000000000000000000000000000000000000000000000000000001'; | ||
| export const TAG_TEE_SCONE = '0x0000000000000000000000000000000000000000000000000000000000000003'; // 0b0011 = TEE + Scone | ||
|
|
@@ -20,6 +14,22 @@ export const TAG_BIT_2 = '0x0000000000000000000000000000000000000000000000000000 | |
| export const TAG_BIT_4 = '0x0000000000000000000000000000000000000000000000000000000000000010'; // 0b10000 (bit 4 in 0-indexed) | ||
| export const TAG_BIT_4_AND_TEE = | ||
| '0x0000000000000000000000000000000000000000000000000000000000000011'; // 0b10001 | ||
| // Tag helpers: | ||
| export const ALL_TEE_TAGS = [ | ||
| TAG_TEE, | ||
| TAG_TEE_SCONE, | ||
| TAG_TEE_GRAMINE, | ||
| TAG_TEE_TDX, | ||
| TAG_ALL_TEE_FRAMEWORKS, | ||
| ]; | ||
| export const TAG_NAMES: { [key: string]: string } = { | ||
| [TAG_STANDARD]: 'STANDARD', | ||
| [TAG_TEE]: 'TEE', | ||
| [TAG_TEE_SCONE]: 'TEE_SCONE', | ||
| [TAG_TEE_GRAMINE]: 'TEE_GRAMINE', | ||
| [TAG_TEE_TDX]: 'TEE_TDX', | ||
| [TAG_ALL_TEE_FRAMEWORKS]: 'TEE_ALL', | ||
| }; | ||
|
|
||
| export const NULL = { | ||
| BYTES32: '0x0000000000000000000000000000000000000000000000000000000000000000', | ||
|
|
||
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.
Uh oh!
There was an error while loading. Please reload this page.