hashgraph / hedera-sdk-java

Hedera™ Hashgraph SDK for Java
https://docs.hedera.com/guides/docs/sdks
Apache License 2.0
209 stars 116 forks source link

Deprecate `fromString` method in `PrivateKey` #1661

Open rokn opened 10 months ago

thenswan commented 4 months ago

For reference:

I reproduced same scenario in Java SDK of getting an error only when using an ECDSA HEX encoded private key. But would like to mention a couple of points to discuss them before opening relevant PR:

Although deprecation of PrivateKey.fromString() is straightforward, would like to call this out to refresh our memory on a PrivateKey class and review consistency across all of the SDKs in it.

cc @agadzhalov

thenswan commented 1 month ago

Try to introduce a fix here.