Skip to content

Commit

Permalink
chore: Fixed typos in the 'crypto' folder. (#19240)
Browse files Browse the repository at this point in the history
  • Loading branch information
keienWang authored Jan 25, 2024
1 parent ecf1fd0 commit 5617c10
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion crypto/keyring/keyring_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1972,7 +1972,7 @@ func TestRenameKey(t *testing.T) {
},
},
{
name: "can't rename a key that doesnt exist",
name: "can't rename a key that doesn't exist",
run: func(kr Keyring) {
err := kr.Rename("bogus", "bogus2")
require.Error(t, err)
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/secp256k1/secp256k1_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func TestSecp256k1LoadPrivkeyAndSerializeIsIdentity(t *testing.T) {
}

func TestGenPrivKeyFromSecret(t *testing.T) {
// curve oder N
// curve order N
N := secp.S256().N
tests := []struct {
name string
Expand Down
2 changes: 1 addition & 1 deletion crypto/keys/secp256r1/privkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func (m *PrivKey) Type() string {
return name
}

// Sign hashes and signs the message usign ECDSA. Implements sdk.PrivKey interface.
// Sign hashes and signs the message using ECDSA. Implements sdk.PrivKey interface.
func (m *PrivKey) Sign(msg []byte) ([]byte, error) {
return m.Secret.Sign(msg)
}
Expand Down

0 comments on commit 5617c10

Please sign in to comment.