@@ -48,20 +48,15 @@ private ECKey buildEcKeyFromPrivateKey() {
4848 // Create the private key spec for secp256r1
4949 ECPrivateKeySpec privateKeySpec = new ECPrivateKeySpec (privateKeyInt , ecSpec );
5050 ECPrivateKey privateKey = (ECPrivateKey ) keyFactory .generatePrivate (privateKeySpec );
51+
52+ log .debug ("privateKey: {}" , privateKey );
5153 // Generate the public key spec from the private key and curve parameters
5254 ECPublicKeySpec publicKeySpec = new ECPublicKeySpec (ecSpec .getG ().multiply (privateKeyInt ), ecSpec );
5355 ECPublicKey publicKey = (ECPublicKey ) keyFactory .generatePublic (publicKeySpec );
5456
55- java .security .spec .ECPoint w = publicKey .getW ();
56- String xHex = w .getAffineX ().toString (16 );
57- String yHex = w .getAffineY ().toString (16 );
58- String priv = backendConfig .getPrivateKey ();
59- String masked = priv != null && priv .length ()>8 ? "****" + priv .substring (priv .length ()-8 ) : "****" ;
57+ log .debug ("publicKey: {}" , publicKey );
58+ log .debug ("Did key: {}" , backendConfig .getDidKey ());
6059
61- log .debug ("DID key: {}" , backendConfig .getDidKey ());
62- log .debug ("Public X (hex): 0x{}" , xHex );
63- log .debug ("Public Y (hex): 0x{}" , yHex );
64- log .debug ("Private (masked): {}" , masked );
6560
6661 // Build the ECKey using secp256r1 curve (P-256)
6762 return new ECKey .Builder (Curve .P_256 , publicKey )
0 commit comments