Skip to content

Commit

Permalink
Log signature aggregation and non signer pubkeys (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
ian-shim authored Dec 15, 2023
1 parent 9877e8b commit 3cb0427
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/aggregation.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,10 @@ func (a *StdSignatureAggregator) AggregateSignatures(state *IndexedOperatorState

for id, op := range state.IndexedOperators {
_, found := signerMap[id]
a.Logger.Trace("[state.IndexedOperators]", "operator", hexutil.Encode(id[:]), "G1X", op.PubkeyG1.X.Text(16), "G1Y", op.PubkeyG1.Y.Text(16))
if !found {
nonSignerKeys = append(nonSignerKeys, op.PubkeyG1)
a.Logger.Trace("[state.IndexedOperators] Non signer found", "operator", hexutil.Encode(id[:]), "G1X", op.PubkeyG1.X.Text(16), "G1Y", op.PubkeyG1.Y.Text(16))
nonSignerOperatorIds = append(nonSignerOperatorIds, id)
}
}
Expand Down
4 changes: 4 additions & 0 deletions core/eth/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ func (t *Transactor) BuildConfirmBatchTxn(ctx context.Context, batchHeader core.
for i := range signatureAggregation.NonSigners {
nonSignerOperatorIds[i] = hashPubKeyG1(signatureAggregation.NonSigners[i])
}
sigAgg, err := json.Marshal(signatureAggregation)
if err == nil {
t.Logger.Trace("[BuildConfirmBatchTxn]", "signatureAggregation", string(sigAgg))
}

t.Logger.Trace("[GetCheckSignaturesIndices]", "regCoordinatorAddr", t.Bindings.RegCoordinatorAddr.Hex(), "refBlockNumber", batchHeader.ReferenceBlockNumber, "quorumNumbers", gethcommon.Bytes2Hex(quorumNumbers))
for _, ns := range nonSignerOperatorIds {
Expand Down

0 comments on commit 3cb0427

Please sign in to comment.