Skip to content

Commit 7ba5f37

Browse files
committed
Updated bdk-ffi to v0.10.0 (bdk 0.23)
1 parent fe59f29 commit 7ba5f37

File tree

3 files changed

+2223
-1328
lines changed

3 files changed

+2223
-1328
lines changed

README.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,10 @@ code. For example:
1515
import BitcoinDevKit
1616

1717
...
18-
1918
let desc = "wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)"
20-
let config = DatabaseConfig.memory(junk: "")
21-
let wallet = try OfflineWallet.init(descriptor: desc, network: Network.regtest, databaseConfig: config)
22-
let address = wallet.getNewAddress()
19+
let databaseConfig = DatabaseConfig.memory
20+
let wallet = try Wallet.init(descriptor: desc, changeDescriptor: nil, network: Network.regtest, databaseConfig: databaseConfig)
21+
let addressInfo = try wallet.getAddress(addressIndex: AddressIndex.new)
2322
```
2423

2524
### Example Projects
@@ -59,10 +58,10 @@ own Github repository use the following steps:
5958
`bdkFFI.xcframework.zip` file and new hash as shown at the end of the build.sh script.
6059
For example:
6160
```swift
62-
.binaryTarget(
63-
name: "bdkFFI",
64-
url: "https://github.com/bitcoindevkit/bdk-swift/releases/download/0.1.3/bdkFFI.xcframework.zip",
65-
checksum: "c0b1e3ea09376b3f316d7d83575e1cd513fc4ad39ef8cf01120a3a1d7757fb97"),
61+
.binaryTarget(
62+
name: "bdkFFI",
63+
url: "https://github.com/bitcoindevkit/bdk-swift/releases/download/0.1.3/bdkFFI.xcframework.zip",
64+
checksum: "c0b1e3ea09376b3f316d7d83575e1cd513fc4ad39ef8cf01120a3a1d7757fb97"),
6665
```
6766
1. Commit the changed `Package.swift` and tag it with the new version number.
6867
```shell

0 commit comments

Comments
 (0)