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

feat: use hints for felt and Uint256 to fixed uint and bytes conversion #207

Open
ClementWalter opened this issue Dec 3, 2024 · 0 comments
Milestone

Comments

@ClementWalter
Copy link
Member

Why

We have a bytes.cairo file inherited from Kakarot where we couldn't write hints. This lib is suspected to be inefficient for standard conversions to fixed size types.

What

Write conversion utils in ethereum.base_types for fixed size types with custom hints.

How

This will depend on the data layout strategy for bytes in keth

  • 1 byte per felt ?
  • 8 bytes per felt ?
  • 31 bytes per felt ?
@ClementWalter ClementWalter added this to the Optimization milestone Dec 3, 2024
@github-project-automation github-project-automation bot moved this to Backlog in Keth Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests

1 participant