-
Notifications
You must be signed in to change notification settings - Fork 125
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convert from_bech32 #202
Comments
If I recall this was never added because there was no standard for differentiating extended ed25519 keys from non-extended ones. Although serialization-lib ended up using If you want a workaround, you can use your own bech32 parsing library to turn the bech32 string into a byte array and then call the right constructor for We could add a |
in the lib doc on below address : you used (const prvKey = CardanoWasm.PrivateKey.from_bech32("ed25519e_sk16rl5fqqf4mg27syjzjrq8h3vq44jnnv52mvyzdttldszjj7a64xtmjwgjtfy25lu0xmv40306lj9pcqpa6slry9eh3mtlqvfjz93vuq0grl80");) |
I have existing wallets and keys generated by From this generating-transactions example, we need bech32 like so:
How do I read and load in these |
Hi,
first I want to say thanks due to this library.
I use @emurgo/cardano-serialization-lib-nodejs and created PrivateKey and convert it to bech32 like below:
privKey=PrivateKey { ptr: 1180592 } and privKey.to_bech32()="ed25519e_sk1qqns8r2m54r7u5wtm27......"
and now i need to convert it from_bech32 but i can not find this function
->CardanoWasm.PrivateKey.from_bech32("ed25519e_sk16rl5fq....")
how can I convert from bech32 to privatekey ?
thanks in advance
The text was updated successfully, but these errors were encountered: