mirror of
https://github.com/hanzoai/mpc.git
synced 2026-10-30 19:45:28 +00:00
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.
23 lines
470 B
Bash
23 lines
470 B
Bash
#!/bin/sh
|
|
# Docker build helper script to handle Go 1.24.5 requirement
|
|
|
|
# Create a temporary go.mod for Docker builds
|
|
cat > go.mod.docker <<EOF
|
|
module github.com/luxfi/mpc
|
|
|
|
go 1.23
|
|
|
|
replace github.com/luxfi/log => github.com/luxfi/log v1.0.5
|
|
|
|
$(grep -v "^go " go.mod | grep -v "^module ")
|
|
EOF
|
|
|
|
# Use the Docker-specific go.mod
|
|
mv go.mod go.mod.original
|
|
mv go.mod.docker go.mod
|
|
|
|
# Download dependencies
|
|
go mod download
|
|
|
|
# Restore original go.mod
|
|
mv go.mod.original go.mod |