Skip to content

andywu0913/tron-tss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

tron-tss

A hello world demonstration of multi-party threshold secret sharing (TSS) implementation for the Tron blockchain.

Overview

This project provides a demonstration of a distributed secret management system for Tron, supporting threshold ECDSA key generation and signing. It is designed to allow multiple parties to collaboratively manage private keys without any single party ever possessing the full key.

Project Structure

cmd/
    secret_manager_all_in_one/  # All TSS logic in one file for demo
    secret_manager_coordinator/ # Coordinator node for TSS demo
    secret_manager_party_1-5/   # Party nodes for for TSS demo
config/                         # Configuration files and code
data/                           # Test fixtures and checkpoint data
internal/                       # Internal Go packages (MPC logic, Tron integration, utilities)
types/                          # Type definitions

Demonstration

There are two ways to try out the demonstration.

Single Process Mode

  1. Simply run:
go run ./cmd/secret_manager_all_in_one/

Distributed Mode (1 coordinator + 5 parties)

  1. Start Party Nodes

In separate terminals, start each party:

go run ./cmd/secret_manager_party_1/
go run ./cmd/secret_manager_party_2/
go run ./cmd/secret_manager_party_3/
go run ./cmd/secret_manager_party_4/
go run ./cmd/secret_manager_party_5/
  1. Start the Coordinator

Next, start the coordinator to initiate key generation and signing:

go run ./cmd/secret_manager_coordinator/

About

A demonstration of multi-party threshold secret sharing (TSS) implementation for the Tron blockchain.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages