Skip to content
This repository has been archived by the owner on Feb 16, 2022. It is now read-only.

Asynchronous ICrypto + noble/ed25519 driver #111

Merged
merged 4 commits into from
Dec 30, 2021
Merged

Asynchronous ICrypto + noble/ed25519 driver #111

merged 4 commits into from
Dec 30, 2021

Conversation

sgwilym
Copy link
Contributor

@sgwilym sgwilym commented Dec 8, 2021

What's the problem you solved?

Currently we use tweetnacl as the default crypto driver, as it was the only universal solution we had. It's quite slow.

There is another package with much better performance, noble/ed25519 but it had an asynchronous interface.

What solution are you recommending?

  • Changed ICrypto's methods to be asynchronous, which in turn made a few things in FormValidator asynchronous.
  • Updated tests to reflect this new API
  • Added a new CryptoDriverNoble crypto driver
  • Made this new driver the default driver

Should we remove the TweetNacl driver?

@sgwilym sgwilym merged commit 4ed667d into main Dec 30, 2021
@sgwilym sgwilym deleted the async-crypto branch December 30, 2021 14:32
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.

1 participant