Skip to content

Commit 93eb9ee

Browse files
yaronfcursoragent
andcommitted
chore: fix staticcheck QF1008 in WIMSE conformance test
Use promoted ecdsa.PublicKey fields on PrivateKey so golangci-lint passes. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 6138605 commit 93eb9ee

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

wimse_conformance_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ func wimseP256Key(t *testing.T, jwk wimseJWK) (*ecdsa.PrivateKey, ecdsa.PublicKe
129129
PublicKey: ecdsa.PublicKey{Curve: elliptic.P256()},
130130
D: new(big.Int).SetBytes(wimseB64u(t, jwk.D)),
131131
}
132-
priv.PublicKey.X = new(big.Int).SetBytes(wimseB64u(t, jwk.X))
133-
priv.PublicKey.Y = new(big.Int).SetBytes(wimseB64u(t, jwk.Y))
132+
priv.X = new(big.Int).SetBytes(wimseB64u(t, jwk.X))
133+
priv.Y = new(big.Int).SetBytes(wimseB64u(t, jwk.Y))
134134
return priv, priv.PublicKey
135135
}
136136

0 commit comments

Comments
 (0)