GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tkeeper-org/tss4j: Java Crypto Library for Threshold Signature Schemes, Threshold ECIES and related primitives. Used in TKeeper

This repository was archived by the owner on Nov 25, 2026. It is now read-only.
BranchesTags
Open more actions menu

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
assets
assets
 
 
bigint
bigint
 
 
ecies
ecies
 
 
ed25519
ed25519
 
 
frost
frost
 
 
gg20
gg20
 
 
gradle/wrapper
gradle/wrapper
 
 
native-build
native-build
 
 
native
native
 
 
secp256k1
secp256k1
 
 
secp256r1
secp256r1
 
 
sodium
sodium
 
 
src
src
 
 
.gitignore
.gitignore
 
 
.gitmodules
.gitmodules
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
THREAT_MODEL.md
THREAT_MODEL.md
 
 
build.gradle
build.gradle
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle
settings.gradle
 
 

Repository files navigation

MPC Threshold Schemes in Java

Java library implementing multi-party ECDSA (GG20), Schnorr (FROST), threshold ECIES, and the ZK building blocks they depend on. Native performance via JNA bindings to libgmp and libsodium.

This is the backbone library of TKeeper (Threshold Key Management System)

Modules

Module Purpose
frost FROST (RFC 9591) t-of-n Schnorr threshold signatures
frost-secp256k1 secp256k1 FROST schemes: default, BIP-340, Taproot (BIP-341)
frost-ed25519 Ed25519 FROST scheme
gg20 GG20 t-of-n threshold ECDSA with Paillier/MtA and ZK hardening
ecies Threshold ElGamal KEM with verifiable partial decryption
ed25519 JNA wrappers over libsodium: Ed25519 point ops and signing
secp256k1 JNA wrappers over libsecp256k1: point ops, ECDSA, Schnorr
secp256r1 Pure Java P-256 curve implementation based on Bouncy Castle
bigint JNA bindings to libgmp: arbitrary-precision integers, CT ops
sodium Low-level libsodium JNA bindings (used by ed25519 module)

Protocols

FROST: Threshold Schnorr (RFC 9591)

Two-round Schnorr threshold signing with Proof-of-Possession commitments. Each participant proves knowledge of their key share before any signing begins, preventing rogue-key attacks in DKG-based setups.

Supported ciphersuites:

Scheme Curve Notes
FrostEd25519Scheme Ed25519 RFC 8032-compatible output
FrostSecp256k1Scheme secp256k1 SEC1-compressed R
FrostBIP340Scheme secp256k1 BIP-340 Schnorr, x-only
FrostTaprootScheme secp256k1 BIP-341 Taproot key-path with TapTweak
FrostSecp256r1Scheme P-256 SEC1-compressed R

GG20: Threshold ECDSA

One-round online threshold ECDSA with identifiable abort. Hardened against CVE-2023-33241 (BitForge), CVE-2025-66016, and Alpha-Rays via the full CGGMP21/24 ZK proof suite:

  • Π_{mod}: Paillier-Blum modulus proof (Jacobi symbol check included)
  • Π_{fac}: No small factors proof (primes > 2²⁵⁶)
  • Π_{range}: Range proof for MtA plaintexts (bound q³)
  • Π_{resp}: Respondent proof with EC-point binding (MtAwc)
  • Π_{enc}: Paillier encryption knowledge proof

Supported curves: secp256k1, secp256r1 (P-256).

Threshold ECIES: Verifiable Threshold Decryption

ElGamal KEM with AEAD symmetric layer. Encryption is non-interactive; decryption requires ≥ t participants, each producing a partial decrypt with a DLEQ proof. Coordinator verifies all proofs before combining via Lagrange interpolation. Faulty participants identified via IdentifiableAbortException.

Supported ciphers: AES-256-GCM, ChaCha20-Poly1305. KDF: HKDF-SHA-384 with domain separation.

Setup

Requirements

  • JDK 17+
  • Native libraries bundled as platform classifiers:
implementation("org.exploit:tss4j-natives:1.0.0:linux-amd64@jar")
implementation("org.exploit:tss4j-natives:1.0.0:macos-aarch64@jar")
implementation("org.exploit:tss4j-natives:1.0.0:windows-amd64@jar")

Load them before any cryptographic operation:

TSS.loadLibraries();

RNG: ZK transcripts use the built-in ZKRandom (backed by SecureRandom.getInstanceStrong()).

Security

See Threat Model for the full adversary model, threat catalog, ZK proof inventory, and addressed CVEs.

License

tss4j is licensed under Apache License 2.0

About

Java Crypto Library for Threshold Signature Schemes, Threshold ECIES and related primitives. Used in TKeeper

tkeeper.org

Topics

bip340cryptographyecdsafrostgg20mpcpaillierschnorrtaprootthreshold-cryptographythreshold-signaturestsszero-knowledge-proofs

Resources

Readme
Apache-2.0 license

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.