Conversation
vietddude
commented
Jul 2, 2025
- Resharing is available for both ECDSA (secp256k1) and EdDSA (ed25519) key types.
- Initiators can specify a custom set of peer IDs (available) to participate in the new committee.
- Backward compatibility
…ting party ID generation logic
|
bugbot run |
|
bugbot run |
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
bugbot run |
|
bugbot run |
…e idempotempt issue
|
bugbot run |
|
bugbot run |
There was a problem hiding this comment.
Bug: JSON Unmarshaling Errors Mask Important Data
When JSON unmarshaling fails for GenerateKeyMessage or ResharingMessage, the uninitialized (zero-valued) fields of the msg struct are subsequently passed to their respective error handling functions. This results in incomplete and misleading error logs, as identifiers like WalletID, KeyType, or NewThreshold will be empty or zero.
pkg/eventconsumer/event_consumer.go#L482-L487
mpcium/pkg/eventconsumer/event_consumer.go
Lines 482 to 487 in e808958
pkg/eventconsumer/event_consumer.go#L124-L127
mpcium/pkg/eventconsumer/event_consumer.go
Lines 124 to 127 in e808958
Bug: Server Crashes on Unknown Session Type
The getVersion function calls logger.Fatal when an unknown session type is encountered, causing the server to crash. This violates PR guidelines against panicking in production and should be replaced with an error return.
pkg/mpc/node.go#L503-L505
Lines 503 to 505 in e808958
Bug: Reshare Session Fails for New Peers
The ensureNodeIsParticipant check in CreateReshareSession is incorrectly applied to new peers (isNewPeer=true) during resharing. New peers are not part of the old committee, but the check validates against oldKeyInfo.ParticipantPeerIDs, preventing them from participating.
pkg/mpc/node.go#L339-L343
Lines 339 to 343 in e808958
Bug: Signing Event Handling Fails to Acknowledge Messages
When handleSigningEvent detects insufficient peers to process a signing request, it returns without acknowledging or negatively acknowledging the JetStream message. This leaves the message unacknowledged, potentially causing redelivery loops, timeouts, or queue blocking.
pkg/eventconsumer/sign_consumer.go#L133-L140
mpcium/pkg/eventconsumer/sign_consumer.go
Lines 133 to 140 in e808958
Was this report helpful? Give feedback by reacting with 👍 or 👎