Skip to content

Conversation

@anhthii
Copy link
Collaborator

@anhthii anhthii commented Aug 13, 2025

Changelog

Added

  • AES-GCM utility functions in pkg/encryption/aes.go:
    • EncryptAESGCMWithNonceEmbed – encrypts plaintext and embeds nonce in ciphertext.
    • DecryptAESGCMWithNonceEmbed – decrypts ciphertext with embedded nonce.
  • ECDH key exchange support in pkg/mpc/key_exchange_session.go and pkg/types/ecdh.go with session management, error handling, and message flow.
  • Party ID utilities in pkg/mpc/party_id.go for better ID and committee peer handling.
  • .gitignore updated to exclude generated config files and node directories (node0, node1, node2, config.yaml).

Changed

  • Node startup sequence (cmd/mpcium/main.go):
    • Added ECDH key exchange before starting consumers.
    • Added error monitoring for ECDH session.
    • Improved context cancellation handling and graceful shutdown.
  • Resharing sessions:
    • Renamed GetExtraPeerIDsGetLegacyCommitteePeers in ECDSA/EdDSA sessions for clarity.
    • Updated consumer logic in pkg/eventconsumer/event_consumer.go to use new naming and behavior (ListenToPeersAsync).
  • Identity encryption (pkg/identity/identity.go):
    • Removed inline AES-GCM encryption/decryption.
    • Switched to new EncryptAESGCMWithNonceEmbed / DecryptAESGCMWithNonceEmbed from pkg/encryption.
  • Messaging comments clarified in pkg/messaging/point2point.go.
  • Keygen consumer logs standardized to lowercase “keygen” for consistency.

Removed

  • Legacy AES-GCM functions encryptAEAD and decryptAEAD from pkg/identity/identity.go.
  • Unused TSS-related types and tests (pkg/types/tss.go, pkg/types/tss_test.go).
  • Old inline test and node setup code in pkg/mpc/node_test.go and pkg/mpc/node.go.

@anhthii anhthii requested a review from nann-cheng August 13, 2025 09:08
@anhthii anhthii merged commit 538fabe into master Aug 13, 2025
@anhthii anhthii deleted the refactoring branch August 13, 2025 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants