chore: Fixed typos in the 'crypto' folder. (#19240)

This commit is contained in:
KeienWang 2024-01-25 23:11:57 +08:00 committed by GitHub
parent ecf1fd0351
commit 5617c10798
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -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)

View File

@ -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

View File

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