Skip to content
This repository was archived by the owner on Jun 7, 2026. It is now read-only.

feat(wnaf): add scalar_repr_to_le_bytes()#10

Closed
tob-scott-a wants to merge 1 commit into
RustCrypto:mainfrom
tob-scott-a:wnaf-little-endian
Closed

feat(wnaf): add scalar_repr_to_le_bytes()#10
tob-scott-a wants to merge 1 commit into
RustCrypto:mainfrom
tob-scott-a:wnaf-little-endian

Conversation

@tob-scott-a

Copy link
Copy Markdown

Needed for a clean fix to elliptic-curve.

@tarcieri

Copy link
Copy Markdown
Member

Hmm, I do think a fix to group is warranted, though we'd need to get it upstream to https://github.com/rustcrypto/group

Per @str4d it sounds like the wNAF implementation in group should be refactored to not make any assumptions about endianness

@tarcieri

Copy link
Copy Markdown
Member

FYI, I took a slightly different approach here, adding a method to PrimeField for obtaining an always-little-endian representation: https://github.com/RustCrypto/ff/pull/10

That's probably not the ideal solution, but it should be enough to at least get things working initially.

@tarcieri

Copy link
Copy Markdown
Member

Closing in favor of #12, but thanks for finding the issue!

@tarcieri tarcieri closed this Mar 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants