Currently to obtain an XpubDerivable (which I need to create an RgbDescr) I start from a MemorySigningAccount, call the to_account method on it to obtain a DerivationAccount and then I convert the latter to a string to manually replace the keychain part (from * to <0;1;9;10>) to finally call XpubDerivable::from_str (which seems the only way to construct an XpubDerivable).
I think this approach is not very robust and we should have a method to create an XpubDerivable from a DerivationAccount.
In case there is already a convenience method to do this without the need to manually edit the string then I'm sorry I haven't found it.
Currently to obtain an
XpubDerivable
(which I need to create anRgbDescr
) I start from aMemorySigningAccount
, call theto_account
method on it to obtain aDerivationAccount
and then I convert the latter to a string to manually replace the keychain part (from*
to<0;1;9;10>
) to finally callXpubDerivable::from_str
(which seems the only way to construct anXpubDerivable
). I think this approach is not very robust and we should have a method to create anXpubDerivable
from aDerivationAccount
.In case there is already a convenience method to do this without the need to manually edit the string then I'm sorry I haven't found it.