Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/3570-add-pkcs-ecdsa-support' int…
Browse files Browse the repository at this point in the history
…o 3602-add-ac2-and-ac3-prefixes
  • Loading branch information
bunfield committed Jun 2, 2024
2 parents 1c1f8d2 + b265cf1 commit d74723f
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)

Check failure on line 457 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 457 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 457 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build macOS

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 457 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build macOS

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values
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)

Check failure on line 466 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 466 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 466 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build macOS

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 466 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build macOS

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values
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)

Check failure on line 475 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 475 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 475 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build macOS

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values

Check failure on line 475 in protocol/signature_test.go

View workflow job for this annotation

GitHub Actions / Build macOS

assignment mismatch: 1 variable but address.FromPrivateKeyBytes returns 2 values
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 d74723f

Please sign in to comment.