Using JavaScript and Node.js, how can I reliably convert an ED25519 private key (used on Hedera Testnet) from hexadecimal encoded string format to DER encoded?
Example input value:
6c91776d90126ce548ac1a399cc174383483d54874297d0f8d083aaXXXXXXXX
The output should be something like this:
302e020100300506032b657004220420xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx