Skip to content

Commit

Permalink
gosimple
Browse files Browse the repository at this point in the history
  • Loading branch information
bunfield committed Jun 2, 2024
1 parent b06ee5c commit b265cf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions protocol/signature_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -456,7 +456,7 @@ func TestTypesFromCerts(t *testing.T) {
case *rsa.PrivateKey:
pk := address.FromPrivateKeyBytes(block.Bytes, SignatureTypeRsaSha256)
pub = address.FromRSAPublicKey(&k.PublicKey)
require.True(t, bytes.Compare(pk.PublicKey.Key, pub.Key) == 0)
require.Equal(t,pk.PublicKey.Key, pub.Key)
priv := address.FromRSAPrivateKey(k)
s := new(RsaSha256Signature)
s.PublicKey = pub.Key
Expand All @@ -465,7 +465,7 @@ func TestTypesFromCerts(t *testing.T) {
case *ecdsa.PrivateKey:
pk := address.FromPrivateKeyBytes(block.Bytes, SignatureTypeEcdsaSha256)
pub = address.FromEcdsaPublicKeyAsPKIX(&k.PublicKey)
require.True(t, bytes.Compare(pk.PublicKey.Key, pub.Key) == 0)
require.Equal(t, pk.PublicKey.Key, pub.Key)
priv := address.FromEcdsaPrivateKey(k)
s := new(EcdsaSha256Signature)
s.PublicKey = pub.Key
Expand All @@ -474,7 +474,7 @@ func TestTypesFromCerts(t *testing.T) {
case ed25519.PrivateKey:
pk := address.FromPrivateKeyBytes(block.Bytes, SignatureTypeED25519)
pub = address.FromED25519PublicKey(k.Public().(ed25519.PublicKey))
require.True(t, bytes.Compare(pk.PublicKey.Key, pub.Key) == 0)
require.Equal(t, pk.PublicKey.Key, pub.Key)
priv := address.FromED25519PrivateKey(k)
s := new(ED25519Signature)
s.PublicKey = pub.Key
Expand Down

0 comments on commit b265cf1

Please sign in to comment.