Updated bdk-ffi to v0.10.0 (bdk 0.23)
This commit is contained in:
parent
fe59f29cbc
commit
7ba5f3757d
15
README.md
15
README.md
@ -15,11 +15,10 @@ code. For example:
|
|||||||
import BitcoinDevKit
|
import BitcoinDevKit
|
||||||
|
|
||||||
...
|
...
|
||||||
|
|
||||||
let desc = "wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)"
|
let desc = "wpkh([c258d2e4/84h/1h/0h]tpubDDYkZojQFQjht8Tm4jsS3iuEmKjTiEGjG6KnuFNKKJb5A6ZUCUZKdvLdSDWofKi4ToRCwb9poe1XdqfUnP4jaJjCB2Zwv11ZLgSbnZSNecE/0/*)"
|
||||||
let config = DatabaseConfig.memory(junk: "")
|
let databaseConfig = DatabaseConfig.memory
|
||||||
let wallet = try OfflineWallet.init(descriptor: desc, network: Network.regtest, databaseConfig: config)
|
let wallet = try Wallet.init(descriptor: desc, changeDescriptor: nil, network: Network.regtest, databaseConfig: databaseConfig)
|
||||||
let address = wallet.getNewAddress()
|
let addressInfo = try wallet.getAddress(addressIndex: AddressIndex.new)
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example Projects
|
### Example Projects
|
||||||
@ -59,10 +58,10 @@ own Github repository use the following steps:
|
|||||||
`bdkFFI.xcframework.zip` file and new hash as shown at the end of the build.sh script.
|
`bdkFFI.xcframework.zip` file and new hash as shown at the end of the build.sh script.
|
||||||
For example:
|
For example:
|
||||||
```swift
|
```swift
|
||||||
.binaryTarget(
|
.binaryTarget(
|
||||||
name: "bdkFFI",
|
name: "bdkFFI",
|
||||||
url: "https://github.com/bitcoindevkit/bdk-swift/releases/download/0.1.3/bdkFFI.xcframework.zip",
|
url: "https://github.com/bitcoindevkit/bdk-swift/releases/download/0.1.3/bdkFFI.xcframework.zip",
|
||||||
checksum: "c0b1e3ea09376b3f316d7d83575e1cd513fc4ad39ef8cf01120a3a1d7757fb97"),
|
checksum: "c0b1e3ea09376b3f316d7d83575e1cd513fc4ad39ef8cf01120a3a1d7757fb97"),
|
||||||
```
|
```
|
||||||
1. Commit the changed `Package.swift` and tag it with the new version number.
|
1. Commit the changed `Package.swift` and tag it with the new version number.
|
||||||
```shell
|
```shell
|
||||||
|
File diff suppressed because it is too large
Load Diff
2
bdk-ffi
2
bdk-ffi
@ -1 +1 @@
|
|||||||
Subproject commit 80ed21e4c9e61d6224e074258229a4d6da6cc049
|
Subproject commit e6cf4237218be9c6143936e7d0056e5270d4c227
|
Loading…
x
Reference in New Issue
Block a user