Closed ilyakmet closed 5 years ago
Ed25519PrivateKey.fromString("30....")
should work
@ilyakmet your private key string must be one of the following character lengths, which is how the SDK infers its encoding type:
It's possible that your private key string is actually a hex(DER) encoded structure containing both a private key and a public key. Can you measure and report its length and where you got it from?
Invalid private key encoding (code -5)
When I use string type pkey:
Error:
How I can convert string type pkey to Ed25519 type ?