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

Support fixed sized arrays for primitive and custom types to fully comply with EIP 712 specification #30619

Open
naveen-imtb opened this issue Oct 18, 2024 · 0 comments · May be fixed by #30620

Comments

@naveen-imtb
Copy link

Rationale

The EIP-712 specification supports fixed size and dynamic sized arrays.

From the spec,

The reference types are arrays and structs. Arrays are either fixed size or dynamic and denoted by Type[n] or Type[] respectively. Structs are references to other structs by their name. The standard supports recursive struct types.

Unfortunately go-ethereum in its current form doesn't fully comply with the EIP-712 standard because the signer module currently doesn't support encoding fixed size array datatypes.

Implementation

Are you willing to implement this feature? Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant