hashgraph / hedera-sdk-java

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

Deprecate `fromString` method in `PrivateKey` #1661

Open rokn opened 11 months ago

thenswan commented 5 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 3 months ago

Try to introduce a fix here.