Commit Graph
9 Commits
Author SHA1 Message Date
zeekay ced778a524 fix(ci): goimports formatting, no-panic logger test, remove unconvert
- goimports -w on all pkg/api, pkg/db, cmd/mpcd files
- TestError_PanicsOnOddKeyValues → TestError_OddKeyValuesLogsWarning
  (logger was intentionally changed to warn+sentinel instead of panic)
- int(threshold) → threshold (threshold is already int from c.Int())
2025-12-27 16:36:55 -08:00
zeekay a4d822eb28 fix(security): Ed25519 initiator verification, proper share verification, no panics
- ConsensusIdentityStore.VerifyInitiatorMessage: implement real Ed25519
  signature verification using the configured event_initiator_pubkey
  instead of blindly accepting all messages
- cggmp21Aggregator.VerifyShare: implement ECDSA partial signature
  verification using secp256k1 curve arithmetic (R' = u1*G + u2*Y_i,
  check R'.x == r mod n) against the party's public key share
- frostAggregator.VerifyShare: implement Schnorr/BIP-340 partial
  signature verification (compute R_i = s_i*G - c*Y_i, verify on curve)
- logger.Error: replace panic on odd keyValues with warning log and
  sentinel value to avoid crashing production
- session.ProcessInboundMessage/ProcessOutboundMessage: replace panics
  with error log and graceful no-op for unoverridden base methods
- eddsaReshareSession: implement ProcessInboundMessage (unmarshal wire
  format, dedup, route to FROST party) and ProcessOutboundMessage (read
  from party Messages channel, wrap in wire format, send)
- cggmp21ReshareSession: implement matching message handlers
- eddsaReshareSession.Reshare: extract actual Ed25519 public key from
  FROST result via GetPublicKeyBytes() instead of empty placeholder
2025-12-27 15:57:11 -08:00
CodyandGitHub c6e2c3c06f Add integration, unit testing CI pipelines (#48)
* Add comprehensive tests for multiple pkg

* Add db_path to config

* Add e2e testing pipeline

* Add github workflow

* Remove config.test.yaml

* Fix lint issue

* Increase timeout

* Add e2e testing for signing

* Skip signing if node is not in participant list

* Code cleanup

* Add e2e testing for signing and resharing

* Increase timeout

* Add test instructions

* Update github workflow branching

* Add vulnerabilties check in CI

* Fix ci
2025-07-06 14:26:03 +07:00
anhthii e7da31eb7c Add version for cli 2025-04-30 21:44:48 +07:00
anhthii 90ded247db implement utility clis 2025-04-29 20:07:08 +07:00
anhthii 694d3a0791 Fix bug signing doesn't work after all nodes are backup 2025-04-02 20:35:41 +07:00
anhthii 35be93988c Implement service discovery 2023-12-22 19:16:30 +07:00
anhthii 2c10f933d2 Refactoring main file, separate into event consumer 2023-12-22 21:02:16 +07:00
anhthii 965341741a Implement logging package 2023-11-05 19:57:41 +07:00