Allow generating extended keys

This commit is contained in:
Sudarsan Balaji
2021-10-21 14:35:40 +05:30
parent f34e59e289
commit f1c2118b02
2 changed files with 44 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
namespace bdk {
[Throws=BdkError]
ExtendedKeyInfo generate_extended_key(Network network, MnemonicType mnemonicType, string? password);
};
[Error]
@@ -146,3 +147,17 @@ interface PartiallySignedBitcoinTransaction {
[Throws=BdkError]
constructor([ByRef] OnlineWallet wallet, string recipient, u64 amount);
};
dictionary ExtendedKeyInfo {
string mnemonic;
string xprv;
string fingerprint;
};
enum MnemonicType {
"Words12",
"Words15",
"Words18",
"Words21",
"Words24",
};