Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Support async CryptoProvider for WebCrypto (wasm32)

オープン
#486 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
rust, wasm
領域
security

調査の方向性

まず、#428 で導入された分離された CryptoProvider 抽象化と、issue で言及されている RustCrypto async-signature の AsyncSigner trait を確認してください。完了の条件は、非同期版が wasm32 上の Promise ベースの WebCrypto バックエンドをサポートしつつ、cloud KMS などの非同期暗号バックエンド向けの既存の抽象化を維持できることです。

索引モデルが issue の本文から書いたものです。

説明

#428 added decoupled crypt backends.

I'm trying to implement a WebCrypto backend but I've hit a wall: CryptoProvider is synchronous.

The WebCrypto API (SubtleCrypto.sign(), .verify(), .importKey()), however, is entirely Promise-based. On wasm32, there is no way to block on a Promise. This makes it impossible to implement CryptoProvider using WebCrypto.

The rust_crypto backend does compile to wasm32 and works, but it means bundling a full Rust crypto implementation into the WASM binary instead of using the browser's native
(and hardware-accelerated) crypto.

Proposal

Add an async counterpart to CryptoProvider so that WebCrypto (and other async crypto backends like cloud KMS) can be used.

The RustCrypto ecosystem already provides async-signature with an AsyncSigner trait that mirrors signature::Signer but with async fn

Alternatives considered

  • Use rust_crypto on wasm32: Works today, but bundles ~100KB+ of Rust crypto into the WASM binary instead of using the browser's built-in crypto.
  • Async wrappers outside the crate: Provide standalone encode/decode functions that bypass CryptoProvider entirely. Works but duplicates logic and doesn't benefit from the abstraction.
主要言語
Rust
スター
2.1k
フォーク
367
平均マージ
5日 12時間
マージ済み PR(30日)
2

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

Keats/jsonwebtoken のほかの issue

Keats/jsonwebtoken の issue をすべて見る

似ている issue

Rust の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。