For Yoroi we need to store Bip44AccountPublic and the encrypted version of Bip44RootPrivateKey in localstorage for non-hardware wallets so I needed to add to_hex functions. I added it to Bip44AccountPrivate also just because it'd be strange if one of the account structs didn't have to_hex randomly.
I also added code to the test to show how to encrypt/decrypt the mnemonic.
For Yoroi we need to store
Bip44AccountPublic
and the encrypted version ofBip44RootPrivateKey
in localstorage for non-hardware wallets so I needed to addto_hex
functions. I added it toBip44AccountPrivate
also just because it'd be strange if one of the account structs didn't haveto_hex
randomly.I also added code to the test to show how to encrypt/decrypt the mnemonic.