Files
mpc/CHANGELOG.md
zeekay 19b49809fd Implement threshold MPC signing with CGGMP21, FROST, and LSS protocols
This commit adds complete multi-party computation (MPC) threshold signing
for multiple cryptographic protocols:

CGGMP21 (ECDSA/secp256k1):
- Key generation for Bitcoin/Ethereum/EVM chains
- Threshold signing with t-of-n security
- Recovery byte calculation for Ethereum compatibility

FROST/Taproot (EdDSA/BIP-340):
- EdDSA key generation for Solana/Sui/Polkadot
- BIP-340 compatible Schnorr signatures (64 bytes)
- CBOR serialization for TaprootConfig crypto types

LSS (Linear Secret Sharing):
- Dynamic resharing support (change participants)
- ECDSA signing with blinding protocol
- Protocol adapter for unified interface

Key fixes:
- Use MarshalBinary/UnmarshalBinary for protocol messages
- CBOR serialization for FROST TaprootConfig (not JSON)
- Correct type assertion for taproot.Signature ([]byte)
- Sorted party IDs for deterministic ordering

E2E tests pass for both ECDSA and EdDSA signing.
2026-01-24 23:41:43 -08:00

20 KiB

CHANGELOG

v0.3.0 (2025-07-13)

  • Add go mod tidy to e2e View
  • Update badger version, add settings for improving durability View
  • Gracefully close consumers View
  • Add missing error handling View
  • Change permissions of setup scripts View
  • Remove jetstream pubsub change to message broker View
  • Add setup_identities, initiator View
  • Revert "Only trigger pipeline on pull request" View
  • Security fixes + CI security check improvement (#49) View
  • Add integration, unit testing CI pipelines (#48) View
  • Only trigger pipeline on pull request View
  • Add pathutil for path validation View
  • Improve security check CI pipeline View
  • Secure file permission View
  • Change order of CodeQL pipeline View
  • Consistent reshare result topic and fix Inconsistent Success Event View
  • Refactor handle resharing error View
  • Fix resharing, only require t+1 participants, add session_id to remove idempotempt issue View
  • Rename success event -> result event View
  • Include error in keygen and reshare event View
  • Rename to improve consistent naming View
  • Implement coordination, waiting for enough peers before consuming sign message View
  • Fix signing eddsa crash on key v1 View
  • Improve nats configuration View
  • Enrich signing session message View
  • Better error handling View
  • Adjust signing logic, only require t+1 nodes to participate View
  • Populate version in signing session View
  • Fix issue key not found after resharing View
  • refactor: improve session type handling and key storage logic View
  • chore: resolve PR review comments View
  • remove debug log View
  • support eddsa reshare View
  • complete reshare ecdsa supports input threshold and peer ids View
  • Enhance reshare session management by introducing versioning and updating party ID generation logic View
  • Update reshare event handling logic and clean up ECDSA reshare session initialization View
  • Remove go.uber.org/mock v0.3.0 dependency from go.mod and go.sum View
  • Fix KeyTypeEd25519 declaration for consistency in eventconsumer and mpc packages View
  • preload preparams View
  • Add resharing functionality with event handling and session management View
  • Add keygen event View
  • Add config max concurrent keygen View
  • Refactor session View
  • Require all peers to participate in key generation View
  • More granular logs on key type View
  • Make done usage consistent View
  • Process key gen event concurrently View
  • Initial readme View
  • Fix parse config View
  • Refactoring main file, separate into event consumer View
  • Improve mpc node readiness implementation, need refactor later View
  • Init config from viper View
  • Implement service discovery View
  • Add deploy script with pm2 View
  • Update generate preparams timeout View
  • Fix gnerate id script View
  • Add internal network code to signing session View
  • Implement signing session View
  • Code refactoring View
  • mpc session file cleanup View
  • Decode pubkey bytes, implement unit tests View
  • If don't close BadgerDB connection, it will take up 2 G.B of disk space View
  • Implement badger kvstore to persist tss key share View
  • Generate different bitcoin address formats View
  • Implement wait peer ready View
  • Reuse preparams to gen key View
  • Implement logging package View
  • Fix bugs, add color logs View
  • Use only topic to broadcast party status View
  • make waiting all parties work View
  • implement create keygen session View
  • Implement direct messaging View
  • Write script to generate node ids View
  • Reorder items View
  • Add resources View
  • Update readme View
  • Remove irrelevant files View
  • Fix typo View
  • Added architecture documentation View
  • update readme View
  • Add installation guidelines View
  • Move diagram above View
  • Update diagram View
  • Update readme View
  • Update readme View
  • Update readme View
  • Add LICENSE View
  • Remove nolonger use files View
  • update .gitignore View
  • Refactor clis to use requestPassword util View
  • Update logs View
  • Add version for cli View
  • Update makefile View
  • Add config.yaml.template View
  • file cleanup View
  • Prepare bin build View
  • Relocate package View
  • Replace gpg with age for key encryption View
  • Bump github.com/btcsuite/btcd from 0.23.4 to 0.24.2 View
  • Remove btcec pkg View
  • implement utility clis View
  • Implement mpc client + examples View
  • Code refactoring for identity store View
  • Encryption of credentials with GPG View
  • Implement identity store, multual signature verification View
  • Load mpc threshold from config View
  • Add maxAge config to drop undelivered messages View
  • Change max deliver to 4 to fix the nats issue: ats: API error: code=400 err_code=10116 description=max deliver is required to be > length of backoff values View

v0.2.0 (2025-04-12)

  • Update change log v0.2.0 View
  • Use onSuccess callback when sign session succeeds View
  • Fix bug signing doesn't work after all nodes are backup View
  • Handle duplicate message View
  • Update timeout consumer keep subscribe on time View
  • Update signing timeout logic when not enough participants View
  • Persit message, handle failure and timeout sign tx View

v0.1.7 (2024-10-05)

  • Fix bug sign mutiple transactions simulteneously crash if transactions have the same walletID View
  • Revert "Debug" View
  • Fix don't pass walletId to session View
  • Debug View
  • Fix topic composer logic View
  • Update mask logic View
  • Update topic composer View
  • Minor fix on make file View
  • Fix bug, load nats url from env var View
  • Update changelog v0.1.6 View

v0.1.6 (2024-09-22)

  • Add deployment script mpc View
  • Log config in generateid script View
  • Update configuration load logic, mask sensitive data View
  • Update makefile View
  • Fix load config, it doens't load environment variables into struct View
  • Implement connection for prod View
  • Update changelog View

v0.1.5 (2024-06-22)

  • Add a slight delay before start sending key generation messages View
  • Add type to sessions View
  • Add comment to add distributed lock View
  • Add delay temporary solution to fix the issue that sign before all nodes are ready View

v0.1.4 (2024-05-19)

  • Add script to add prefix ecdsa for existing keyinfos View
  • Return only Signature in siging success event View
  • Support eddsa signing View
  • Add eddsa signing session View
  • Init logger for migration script View

v0.1.3 (2024-05-11)

  • Add script to add prefix ecdsa for old keys View
  • Include eddsa pubkey in SucessGenerationEvent View
  • Gen eddsa key works now View
  • Support EDDSA View
  • Update changelog View

v0.1.2 (2024-03-09)

  • Change default threshhold to 1 View
  • Refine log View
  • Threshold validation, allow t+1 peers to create signing session View
  • Implement keyinfo store View
  • Track ready nodes, reduce readiness period to 1 second View
  • Upgrade threshold to v2 View

v0.1.1 (2024-02-05)

  • Add retry package to improve NATs direct message resiliency View
  • Move listening to incoming message prior to genkey and signing to fix the nats: no responders available for request View
  • Increase direct messsage timeout, add mutex lock for party updating View
  • Pass done function to session to clean up resource after successful execution View
  • Implement queue manager to spawn message queue based on topic View
  • Decode round8, round9 View
  • Refactor signing session View
  • Clean up code View
  • Refactor keygen session View
  • Fix script to load peer ids to consul View