Skip to content

Remove bits features#1766

Merged
tarcieri merged 1 commit into
masterfrom
remove-bits-features
Jun 2, 2026
Merged

Remove bits features#1766
tarcieri merged 1 commit into
masterfrom
remove-bits-features

Conversation

@tarcieri

@tarcieri tarcieri commented Jun 2, 2026

Copy link
Copy Markdown
Member

Upstream support was removed in RustCrypto/traits#2417.

See also: zkcrypto/ff#157

@tarcieri tarcieri force-pushed the remove-bits-features branch 2 times, most recently from 450a7fb to ae36abc Compare June 2, 2026 21:31
Upstream support was removed in RustCrypto/traits#2417.

See also: zkcrypto/ff#157
@tarcieri tarcieri force-pushed the remove-bits-features branch from ae36abc to e4e1295 Compare June 2, 2026 21:36
@tarcieri tarcieri merged commit 151c6b3 into master Jun 2, 2026
159 checks passed
@tarcieri tarcieri deleted the remove-bits-features branch June 2, 2026 22:01
@kayabaNerve

kayabaNerve commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

Ugh. I really hope releases don't get cut with this. I need to_le_bits for a lot of my work :/

I do see an RFC was made, it just means that elliptic-curves needs to move to RustCrypto's ff OR it needs to flow through ff for me to be able to update.

kayabaNerve added a commit to kayabaNerve/trout that referenced this pull request Jun 6, 2026
This allows us to remove our shim for `rand_core`.

Additionally, the `ciphersuite` (unused), `multiexp`, and `dkg` crates from
Serai have been dropped as they're on the old versions of `ff`, `group`. From
`multiexp`, I've copied a function which simply does the sum as-is, with no
actual speedup. For `dkg`, we only used `Participant`, which I've simply copied
in.

Unfortunately, we need `PrimeFieldBits` for any intelligent multi-exponentation
and to convert to a consistent representation of bytes when converting to
scalars over the class group.
[`k256` removed support for `PrimeFieldBits`](
  RustCrypto/elliptic-curves#1766
) so our own shim has been added there as well...
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.

2 participants