Skip to content

An illustrative Rust threshold cryptography library implementation

Notifications You must be signed in to change notification settings

luishsr/threshold-cryptography

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Threshold Cryptography Library in Rust

A Rust-based library implementing threshold cryptography with Shamir's Secret Sharing, modular arithmetic, and additional security features. This library allows secure distribution of secrets by splitting them into multiple shares, requiring a subset of shares to reconstruct the original secret.

Features

Shamir's Secret Sharing: Split a secret into n shares, requiring a threshold t to reconstruct the secret.

Modular Arithmetic: Uses a large prime modulus to ensure secure, finite-field calculations.

Hash-Based Commitments: Each share includes a hash commitment to verify its integrity.

Share Expiration: Optional expiration feature to make shares invalid after a specified time.

Encrypted Shares: Encrypt each share for secure transmission across untrusted channels.

##Dependencies num-bigint: For large integer arithmetic. rand: For secure random number generation. sha2: For generating SHA-256 hash commitments. aes and ctr: For AES-256 CTR encryption of shares. serde and bincode: For serializing and deserializing shares.

About

An illustrative Rust threshold cryptography library implementation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages