diff --git a/cmd/signatory/main.go b/cmd/signatory/main.go index 1d37b7a5..3f8fa358 100644 --- a/cmd/signatory/main.go +++ b/cmd/signatory/main.go @@ -133,7 +133,7 @@ func main() { log.Fatal(err) } if len(pubKeys) == 0 { - log.Error("No keys discovered in Key Valut(s), exiting..") + log.Error("No keys discovered in Key Vault(s), exiting..") os.Exit(1) } @@ -156,9 +156,9 @@ func main() { if s.IsAllowed(key) { allowedKeyCount++ - l.Info("Kery is configured, ready for use") + l.Info("Key configured, ready for use") } else { - l.Infof("Key has been found in vault, not configured for use in %s", configFile) + l.Infof("Key found in vault but not configured in %s", configFile) } } diff --git a/pkg/crypto/crypto.go b/pkg/crypto/crypto.go index b6ac4bd6..6a867da1 100644 --- a/pkg/crypto/crypto.go +++ b/pkg/crypto/crypto.go @@ -36,7 +36,7 @@ func GetCurve(name string) elliptic.Curve { return nil } -// ECCoordinateFromPrivateKey given an elliptic curve name it will produce X and Y coordiante from D +// ECCoordinateFromPrivateKey given an elliptic curve name it will produce X and Y coordinate from D func ECCoordinateFromPrivateKey(d []byte, curveName string) (xBytes, yBytes []byte) { curve := GetCurve(curveName) diff --git a/pkg/signatory/signatory_test.go b/pkg/signatory/signatory_test.go index b3b14e71..eb5a73a5 100644 --- a/pkg/signatory/signatory_test.go +++ b/pkg/signatory/signatory_test.go @@ -38,7 +38,7 @@ func TestGetPublicKeyNoVault(t *testing.T) { nil, ) - _, err := s.GetPublicKey(context.TODO(), "Unkown address") + _, err := s.GetPublicKey(context.TODO(), "Unknown address") if err != signatory.ErrVaultNotFound { fmt.Printf("Unexpected error was thrown: %s\n", err.Error()) diff --git a/pkg/tezos/message.go b/pkg/tezos/message.go index 5056b7c6..5b18c3f8 100644 --- a/pkg/tezos/message.go +++ b/pkg/tezos/message.go @@ -31,7 +31,7 @@ const ( OpEndorsement = "endorsement" // OpGeneric config string for generic operation OpGeneric = "generic" - // OpUnknown config string for unkown operation + // OpUnknown config string for unknown operation OpUnknown = "unknown" ) diff --git a/pkg/tezos/message_test.go b/pkg/tezos/message_test.go index 7b4c9c6c..ef8714ff 100644 --- a/pkg/tezos/message_test.go +++ b/pkg/tezos/message_test.go @@ -96,7 +96,7 @@ func TestFilterMessage(t *testing.T) { Case{Name: "Generic operation not configured", Message: []byte{0x03, 0x02}, Error: &tezos.FilterError{}, Config: genTezosConfig([]string{tezos.OpGeneric}, nil)}, Case{Name: "Generic operation not long enough", Message: []byte{0x03, 0x02}, Error: &tezos.FilterError{}, Config: genTezosConfig([]string{tezos.OpGeneric}, []string{tezos.OpGenBallot})}, - Case{Name: "Generic operation unkown not long enough", Message: []byte{0x03, 0x02}, Error: nil, Config: genTezosConfig([]string{tezos.OpGeneric}, []string{tezos.OpGenUnknown})}, + Case{Name: "Generic operation unknown not long enough", Message: []byte{0x03, 0x02}, Error: nil, Config: genTezosConfig([]string{tezos.OpGeneric}, []string{tezos.OpGenUnknown})}, Case{Name: "Generic operation ballot", Message: createGeneric(0x06), Error: nil, Config: genTezosConfig([]string{tezos.OpGeneric}, []string{tezos.OpGenBallot})}, Case{Name: "Generic operation transaction", Message: createGeneric(0x08), Error: nil, Config: genTezosConfig([]string{tezos.OpGeneric}, []string{tezos.OpGenTransaction})}, Case{Name: "Generic operation proposal", Message: createGeneric(0x05), Error: nil, Config: genTezosConfig([]string{tezos.OpGeneric}, []string{tezos.OpGenProposal})},