File tree 3 files changed +35
-3
lines changed
BDKSwiftExampleWallet/Service/BDK Service
3 files changed +35
-3
lines changed Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ private class BDKService {
80
80
changeDescriptor: changeDescriptor. asStringPrivate ( )
81
81
)
82
82
try keyService. saveBackupInfo ( backupInfo)
83
- let wallet = try Wallet . init (
83
+ let wallet = try Wallet (
84
84
descriptor: descriptor,
85
85
changeDescriptor: changeDescriptor,
86
86
network: network,
@@ -90,7 +90,7 @@ private class BDKService {
90
90
}
91
91
92
92
private func loadWallet( descriptor: Descriptor , changeDescriptor: Descriptor ) throws {
93
- let wallet = try Wallet . init (
93
+ let wallet = try Wallet (
94
94
descriptor: descriptor,
95
95
changeDescriptor: changeDescriptor,
96
96
network: network,
Original file line number Diff line number Diff line change 1
1
# BDKSwiftExampleWallet
2
- This is a Work in Progress.
3
2
4
3
[ ![ License] ( https://img.shields.io/badge/license-MIT%2FApache--2.0-blue.svg )] ( https://github.com/reez/BDKSwiftExampleWallet/blob/main/LICENSE )
5
4
5
+ An example iOS app using [ BDK] ( https://github.com/bitcoindevkit )
6
+
7
+ <img src =" Docs/bitcoin-screen.png " alt =" Screenshot " width =" 236 " height =" 511 " >
8
+
9
+ ## Functionality
10
+
11
+ * This is an experimental work in progress.*
12
+
13
+ ### Wallet
14
+
15
+ Supports single key HD segwit/bech32 wallets with BIP84 derivation paths.
16
+
17
+ ` wpkh([extended private key]/84'/1'/0'/0/*) `
18
+
19
+ ### Implemented
20
+
21
+ - [x] Create Wallet ` Wallet(descriptor: changeDescriptor: network: databaseConfig:) `
22
+
23
+ - [x] Get Address ` getAddress `
24
+
25
+ - [x] Get Balance ` getBalance `
26
+
27
+ - [x] List Transactions ` listTransactions `
28
+
29
+ - [x] Send ` send `
30
+
31
+ - [x] Sync ` sync `
32
+
33
+ ## Swift Packages
34
+
35
+ - [ BDK Swift] ( https://github.com/bitcoindevkit/bdk-swift )
36
+
37
+ - [ BitcoinUI] ( https://github.com/reez/BitcoinUI )
You can’t perform that action at this time.
0 commit comments