16 の SDK、ひとつの正準的なインターフェース

同じ SIEM イベント。同じパーサー上限。同じ IETF テストベクトル。同じ環境変数。言語を選んでも契約は同一。

リポジトリをクローン

GitLab で見る
git clone https://gitlab.com/toontoolbox/toonwebtoken.git

バックエンド SDK(14)

Rust

安定版
implementations/rust/

リファレンス Rust クレート `toonwebtoken` 1.5.0 — MIT/Apache-2.0 デュアルライセンス。Criterion ベンチマークは 30 ms 未満。oqs 0.11 経由でリアル ML-DSA-65。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/rust
cargo build
Tests
110
Bench
9 (6 パーサー + 3 PQC)

Python

安定版
implementations/python/

リファレンス SDK、322 件のテスト。モジュールは堅牢化 (TWT-A)、設定整合性 (TWT-C)、AuditTrail (TWT-D4) を網羅。liboqs 経由でリアル ML-DSA-65。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/python
pip install -r requirements.txt
Tests
322
Bench
9 (6 パーサー + 3 PQC)

TypeScript / Node.js

安定版
implementations/javascript/

190 件のテスト。@noble/post-quantum 経由でリアル ML-DSA-65。Jest テストランナー、perf_hooks ベンチマークハーネス。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/javascript
npm install
Tests
190
Bench
9 (6 パーサー + 3 PQC)

Go

安定版
implementations/go/

`twt` パッケージ + `twt/config` サブパッケージ。138 件のテスト、`-race` クリーン。cloudflare/circl 1.6.3 (ピュア Go) 経由でリアル ML-DSA-65。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/go
go mod download
Tests
138
Bench
9 (6 パーサー + 3 PQC)

Java

安定版
implementations/java/

Maven プロジェクト、JDK 17+。179 件のテスト。BouncyCastle 1.79 経由でリアル ML-DSA-65。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/java
mvn install
Tests
179
Bench
9 (6 パーサー + 3 PQC)

C# / .NET 8

安定版
implementations/csharp/

185 件のテスト (メイン 166 + TwtConfig 22)。BouncyCastle.NET 2.6.2 経由でリアル ML-DSA-65。xUnit スイート。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/csharp
dotnet restore
Tests
185
Bench
9 (6 パーサー + 3 PQC)

C++

安定版
implementations/cpp/

CMake プロジェクト。liboqs 0.15 (C API + RAII) 経由でリアル ML-DSA-65。13 ctest スイート、ベンチマークハーネス付き。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/cpp
mkdir build && cd build && cmake .. && make
Tests
13 スイート
Bench
7 (4 HS256 + 3 PQC)

Swift

安定版
implementations/swift/

Swift Package Manager プロジェクト。150 件のテスト。liboqs 0.15 SPM C-shim 経由でリアル ML-DSA-65。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/swift
swift build
Tests
150
Bench
7

C

安定版
implementations/c/

Makefile ビルドで libtwt.a を生成。約 90 件のテスト。liboqs 0.15 C API 経由でリアル ML-DSA-65。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/c
make
Tests
52
Bench

VB.NET

安定版
implementations/vbnet/

156 件のテスト。BouncyCastle.NET 2.6.2 経由でリアル ML-DSA-65。C# SDK と .NET 8 ツールチェーンを共有。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/vbnet
dotnet restore
Tests
156
Bench
7 (4 HS256 + 3 PQC)

PHP

安定版
implementations/php/

157 件のテスト。PHP-FFI 経由で liboqs 0.15 によりリアル ML-DSA-65。Docker ベース CI (php:8.3-cli)。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/php
composer install
Tests
157
Bench
7

Perl

安定版
implementations/perl/

152 件のテスト。FFI::Platypus 2.0 経由で liboqs 0.15 によりリアル ML-DSA-65。Docker ベース CI。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/perl
cpanm --installdeps .
Tests
152
Bench
7

Fortran

安定版
implementations/fortran/

13 ctest スイート。iso_c_binding 経由で liboqs 0.15 によりリアル ML-DSA-65。CMake ビルド、Docker CI。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/fortran
mkdir build && cd build && cmake .. && make
Tests
13 スイート
Bench
7

Delphi

ベータ
implementations/delphi/

静的レビュー検証済み。DUnitX テストフレームワーク。Windows 専用 (RAD Studio)。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/delphi
Tests
静的レビュー
Bench

フロントエンド SDK (2/2)

React

ベータ
implementations/react/

フック (`useTWT`、`useAuth`)、`TWTProvider`、`ProtectedRoute`、自動更新付きの localStorage 永続化。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/react
npm install

Vue 3

ベータ
implementations/vue/

コンポーザブル (`useTWT`、`useAuth`)、`createTWTPlugin`、ナビゲーションガード、自動更新付きのリアクティブ状態。

git clone https://gitlab.com/toontoolbox/toonwebtoken.git
cd toonwebtoken/implementations/vue
npm install

SDK 横断の契約

  • 16 SDK にわたる同じ正準的インターフェース (SDK_REFERENCE.md を参照)。
  • 同じ SIEM イベント: TWT_HONEYPOT_HIT、TWT_TOKEN_ISSUED、TWT_TOKEN_REVOKED、TWT_CONFIG_CHANGED、CONFIG_YAML_DEPRECATED、TWT_BREACH_DETECTED。
  • 同じ環境変数: TWT_CONFIG_HMAC_KEY、TWT_CONFIG_HMAC、TWT_CONFIG_PATH。
  • 同じパーサー上限: 深さ 10、合計 1 MiB、オブジェクトあたり 100 キー、キー 256 バイト、配列 10 000 要素、文字列あたり 64 KiB。
  • 同じ IETF テストベクトル: Rust クレートが生成し、適合する各 SDK がバイト単位で再検証。
  • 全 16 SDK で MIT/Apache-2.0 デュアルライセンス。