Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Log signature aggregation and non signer pubkeys #130

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading