Skip to content

[WIP] rfc: replace subtle with ctutils#3

Draft
tarcieri wants to merge 1 commit into
zkcrypto:mainfrom
tarcieri:tarcieri/replace-subtle-with-ctutils
Draft

[WIP] rfc: replace subtle with ctutils#3
tarcieri wants to merge 1 commit into
zkcrypto:mainfrom
tarcieri:tarcieri/replace-subtle-with-ctutils

Conversation

@tarcieri
Copy link
Copy Markdown

@tarcieri tarcieri commented Apr 7, 2026

No description provided.

@ebfull
Copy link
Copy Markdown
Contributor

ebfull commented May 30, 2026

I'd like to engage with this in the next release march of the zkcrypto crates, which will hopefully occur far faster than the delay between 0.13 and 0.14, thanks to some of my own renewed motivation to push releases through.

Due to the sheer number of public APIs this affects across many crates (as with the rand changes) it's good IMO that we're biting these off separately. I'll hopefully have an opportunity to find any unforeseen problems by running patches through my stack.

I'll provide some feedback about my experience with the (mechanical) updates needed to switch from subtle and see if the RFC as-written suffices. The motivation and background is solid, thank you for all the detail you put into it.


Migrating from `subtle` to `ctutils` is a largely mechanical operation that can be done through a
series of find-and-replace operations, as documented in the
[`subtle` migration guide for `ctutils`](https://docs.rs/ctutils/latest/ctutils/#subtle-migration-guide).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
[`subtle` migration guide for `ctutils`](https://docs.rs/ctutils/latest/ctutils/#subtle-migration-guide).
[`subtle` migration guide for `ctutils`](https://docs.rs/ctutils/0.4.2/ctutils/#subtle-migration-guide).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(or whatever version we end up adopting, if this is where the RFC will point people at)


## Migration

Migrating from `subtle` to `ctutils` is a largely mechanical operation that can be done through a
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the other subtle interop things are worth mentioning explicitly (the bidirectional From impls) since I think these may become useful for some library crates during this coordinated transition.

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