Skip to content

fix: infinite recursion in Ed25519AffinePoint::identity()#452

Open
eeemmmmmm wants to merge 1 commit intoProjectZKM:mainfrom
eeemmmmmm:fix/ed25519-identity-recursion
Open

fix: infinite recursion in Ed25519AffinePoint::identity()#452
eeemmmmmm wants to merge 1 commit intoProjectZKM:mainfrom
eeemmmmmm:fix/ed25519-identity-recursion

Conversation

@eeemmmmmm
Copy link
Contributor

The trait method identity() was calling Self::identity() which resolves to itself, causing stack overflow when mul_assign() or multi_scalar_multiplication() is called on Ed25519 points.

Changed to return Self(Self::IDENTITY) directly, matching the pattern used in the inherent impl block.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant