chore: lint v2 (#24118)

This commit is contained in:
Alex | Interchain Labs
2025-03-25 15:57:24 +00:00
committed by GitHub
parent 9acd7716dd
commit b7a20b81f6
87 changed files with 298 additions and 288 deletions
@@ -67,5 +67,5 @@ func (suite *PKSuite) TestMarshal() {
pk := new(PubKey)
err = pk.Unmarshal(buffer, secp256r1, size)
require.NoError(err)
require.True(pk.PublicKey.Equal(&suite.pk.PublicKey))
require.True(pk.Equal(&suite.pk.PublicKey))
}
+2 -2
View File
@@ -58,12 +58,12 @@ type ecdsaSK struct {
// Marshal implements customProtobufType.
func (sk ecdsaSK) Marshal() ([]byte, error) {
return sk.PrivKey.Bytes(), nil
return sk.Bytes(), nil
}
// MarshalJSON implements customProtobufType.
func (sk ecdsaSK) MarshalJSON() ([]byte, error) {
b64 := base64.StdEncoding.EncodeToString(sk.PrivKey.Bytes())
b64 := base64.StdEncoding.EncodeToString(sk.Bytes())
return []byte("\"" + b64 + "\""), nil
}
+2 -2
View File
@@ -67,12 +67,12 @@ type ecdsaPK struct {
// Marshal implements customProtobufType.
func (pk ecdsaPK) Marshal() ([]byte, error) {
return pk.PubKey.Bytes(), nil
return pk.Bytes(), nil
}
// MarshalJSON implements customProtobufType.
func (pk ecdsaPK) MarshalJSON() ([]byte, error) {
b64 := base64.StdEncoding.EncodeToString(pk.PubKey.Bytes())
b64 := base64.StdEncoding.EncodeToString(pk.Bytes())
return []byte("\"" + b64 + "\""), nil
}