-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add ExtendedPrivKey and ExtendPubKey classes #138
Comments
Hi, can you explain a bit more about how you want to use |
I'm trying to avoid use xprv as wallet descriptor. Let me put an example: val key = generateExtendedKey(Network.TESTNET, WordCount.WORDS12, null)
// Desired scenario
val wallet = Wallet(
"wpkh([c258d2e4/84/1/0]${key.xpub}/0/*)",
"wpkh([c258d2e4/84/1/0]${key.xpub}/1/*)",
Network.TESTNET,
DatabaseConfig.Memory,
BlockchainConfig.Electrum(
ElectrumConfig("ssl://electrum.blockstream.info:60002", null, 5u, null, 10u)
)
) Currently there is no way to do that. |
OK yes I understand now and this is a very good suggestion. But to make your example work we don't need new The FFI definition would look like this:
|
I suppose that adding just |
I'm open to other solutions if you have a need for something more. I just realized an existing PR #139 also adds xpub to |
This should be fixed as part of #154 which is focused on deriving xpubs from xprv keys. |
Hi!
The Kotlin library only contains
ExtendedKeyInfo
.It would be very useful to also have
ExtendedPrivKey
andExtendPubKey
.The text was updated successfully, but these errors were encountered: