Skip to content

Commit

Permalink
🐛 fix(linters): fix naming problem >>> ⏰ 5m
Browse files Browse the repository at this point in the history
  • Loading branch information
logicalangel committed May 12, 2024
1 parent 408f4c0 commit d7c9a66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions internal/crypto/tss/identity.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@ type DistributedSigner struct {
numberOfPeers int
}

// Verify function will check message signature to be valid
// Verify function will check message signature to be valid.
func (s *DistributedSigner) Verify(_ []byte, _ []byte, _ []byte) (bool, error) {
// TODO implement me
panic("implement me")
}

// WriteConfigs will write identity keys to a persistent storage
// WriteConfigs will write identity keys to a persistent storage.
func (s *DistributedSigner) WriteConfigs() {
// nothing to do!
}

// Update function will update the identity key about other parties
// Update function will update the identity key about other parties.
func (s *DistributedSigner) Update(msg tss.Message) error {
if s.keyParty.PartyID() == msg.GetFrom() {
return nil
Expand Down
4 changes: 2 additions & 2 deletions internal/crypto/tss/identity_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ signing:
}

go func(signer *MessageSigner, msg tss.Message) {
err := signer.AckSignature(msg)
err := signer.Acknowledge(msg)
if err != nil {
utils.Logger.Error(err.Error())
}
Expand All @@ -120,7 +120,7 @@ signing:
}

go func(signer *MessageSigner, msg tss.Message) {
err := signer.AckSignature(msg)
err := signer.Acknowledge(msg)
if err != nil {
utils.Logger.Error(err.Error())
}
Expand Down
5 changes: 3 additions & 2 deletions internal/crypto/tss/signer.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
package tss

import (
"math/big"

"github.com/TimeleapLabs/unchained/internal/consts"
"github.com/TimeleapLabs/unchained/internal/utils"
"github.com/bnb-chain/tss-lib/common"
"github.com/bnb-chain/tss-lib/ecdsa/signing"
"github.com/bnb-chain/tss-lib/tss"
"math/big"
)

// MessageSigner represents state of signing of a message.
Expand Down Expand Up @@ -48,7 +49,7 @@ func (s *DistributedSigner) NewSigning(signers []*DistributedSigner, data []byte
return signer, nil
}

// Acknowledge function will confirm an acceptance from other signers
// Acknowledge function will confirm an acceptance from other signers.
func (s *MessageSigner) Acknowledge(msg tss.Message) error {
if s.party.PartyID() == msg.GetFrom() {
return nil
Expand Down

0 comments on commit d7c9a66

Please sign in to comment.