| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
This project implements a threshold secret sharing scheme using polynomial interpolation over a prime field in Go. It's designed to securely split and reconstruct private keys used in cryptographic operations, specifically for ECDSA signatures on the secp256k1 curve.
Secret Splitting (Construct function):
Secret Reconstruction (Reconstruct function):
The main functions provided by this library are:
func Construct(dA *big.Int, outFilesValues []io.Writer, outFilesXs []io.Writer, n, t int)
func Reconstruct(ShareHandles []io.Reader, xsHandles []io.Reader, outFile io.Writer, t int)The project includes a comprehensive test suite in secret_share_test.go. This test:
To run the tests:
go test ./...
This implementation is for educational purposes and has not been audited for production use. In a real-world scenario, additional security measures should be implemented, such as:
This project is licensed under the terms specified in the LICENSE file.
| Back | FazBrowse Home | New Git URL |