chore: Fixed typos in the 'crypto' folder. (#19240)
This commit is contained in:
parent
ecf1fd0351
commit
5617c10798
@ -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)
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user