We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5415a08 commit 31282a3Copy full SHA for 31282a3
kms_signer_test.go
@@ -48,19 +48,19 @@ func newMockKMSSigner(t *testing.T) *KMSSigner {
48
}
49
50
func (m *mockKMSClient) GetPublicKey(ctx context.Context, req *kmspb.GetPublicKeyRequest) (*kmspb.PublicKey, error) {
51
-
+
52
x509EncodedPub, err := x509.MarshalPKIXPublicKey(&m.privateKey.PublicKey)
53
if err != nil {
54
return nil, fmt.Errorf("failed to marshal public key to X.509: %w", err)
55
56
57
pemBytes := pem.EncodeToMemory(&pem.Block{
58
Type: "PUBLIC KEY",
59
Bytes: x509EncodedPub,
60
})
61
62
return &kmspb.PublicKey{
63
- Pem: string(pemBytes),
+ Pem: string(pemBytes),
64
Algorithm: kmspb.CryptoKeyVersion_EC_SIGN_SECP256K1_SHA256,
65
}, nil
66
0 commit comments