Abstract the TEE policy verification logic into a library useable by external contracts
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Refactor
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- solidity
- Domain
- authorization, security
Research direction
Start by locating the BlockBuilderPolicy caching logic and compare it with the copied sections in the FlashblockNumber contract referenced in the issue. Define the reusable library boundary and verify that external policy contracts can outsource builder-role verification without duplicating the caching logic.
Written by the indexing model from the issue text.
Description
Problem
Recently in the FlashblockNumber contract we had to copy-paste sections of the BlockBuilderPolicy's caching logic into the FlashblockNumber contract in order for it to be able to outsource verifying the builder role to the BlockBuilderPolicy. This was error-prone and caused duplicative code
Solution
Refactor this caching logic into a Solidity library that can be easily re-used by external contracts. This will make it so that a policy contract can outsource its auth logic to another policy with as little code duplication as possible.
- Dominant language
- Solidity
- Stars
- 4
- Forks
- 4
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from flashbots/flashtestations
-
Difficulty 4/5 3-5 days Newbie friendliness 42/100
flashbots/flashtestations#58 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
flashbots/flashtestations#57 ·
-
v2
Difficulty 5/5 Over a week Newbie friendliness 35/100
flashbots/flashtestations#49 ·
-
v2
Difficulty 5/5 Over a week Newbie friendliness 25/100
flashbots/flashtestations#48 ·
-
v2
Difficulty 5/5 Over a week Newbie friendliness 30/100
flashbots/flashtestations#47 ·
All issues in flashbots/flashtestations
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
AXERA-TECH/ax-llm#75 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
sympozium-ai/sympozium#627 ·
-
clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:security impact:ux-friction issue-rating: 🦞 diamond lobster P2
Difficulty 2/5 1-3 hours Newbie friendliness 84/100