Skip to content

Commit

Permalink
(fix) Minor typo fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jevonearth committed Aug 23, 2019
1 parent dd7d90c commit 773fe88
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/signatory/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand All @@ -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)
}
}

Expand Down
2 changes: 1 addition & 1 deletion pkg/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
2 changes: 1 addition & 1 deletion pkg/signatory/signatory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
2 changes: 1 addition & 1 deletion pkg/tezos/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/tezos/message_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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})},
Expand Down

0 comments on commit 773fe88

Please sign in to comment.