From 855fa190949344955761acdfb9309fd3f3352745 Mon Sep 17 00:00:00 2001 From: Hein Meling Date: Mon, 26 Feb 2024 14:45:25 +0100 Subject: [PATCH] fix: rename capitalized names to sigs --- internal/proto/hotstuffpb/convert.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/internal/proto/hotstuffpb/convert.go b/internal/proto/hotstuffpb/convert.go index 87291ebe..965074e5 100644 --- a/internal/proto/hotstuffpb/convert.go +++ b/internal/proto/hotstuffpb/convert.go @@ -16,25 +16,25 @@ func QuorumSignatureToProto(sig hotstuff.QuorumSignature) *QuorumSignature { signature := &QuorumSignature{} switch ms := sig.(type) { case crypto.MultiSignature[ecdsa.Signature]: - ECDSASigs := make([]*ECDSASignature, 0, sig.Participants().Len()) + sigs := make([]*ECDSASignature, 0, sig.Participants().Len()) for _, s := range ms { - ECDSASigs = append(ECDSASigs, &ECDSASignature{ + sigs = append(sigs, &ECDSASignature{ Signer: uint32(s.Signer()), R: s.R().Bytes(), S: s.S().Bytes(), }) } signature.Sig = &QuorumSignature_ECDSASigs{ECDSASigs: &ECDSAMultiSignature{ - Sigs: ECDSASigs, + Sigs: sigs, }} case crypto.MultiSignature[eddsa.Signature]: - EDDSASigs := make([]*EDDSASignature, 0, sig.Participants().Len()) + sigs := make([]*EDDSASignature, 0, sig.Participants().Len()) for _, s := range ms { - EDDSASigs = append(EDDSASigs, &EDDSASignature{Signer: uint32(s.Signer()), Sig: s.ToBytes()}) + sigs = append(sigs, &EDDSASignature{Signer: uint32(s.Signer()), Sig: s.ToBytes()}) } signature.Sig = &QuorumSignature_EDDSASigs{EDDSASigs: &EDDSAMultiSignature{ - Sigs: EDDSASigs, + Sigs: sigs, }} case *bls12.AggregateSignature: