Skip to content

Commit 52fb0e5

Browse files
authored
Merge pull request #75 from synonymdev/feat/trezor-compose-integration
feat(trezor): add account info, compose, and broadcast FFI exports
2 parents 8fcd02b + 8868d60 commit 52fb0e5

38 files changed

Lines changed: 8126 additions & 861 deletions

Cargo.lock

Lines changed: 612 additions & 425 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "bitkitcore"
3-
version = "0.1.46"
3+
version = "0.1.48"
44
edition = "2021"
55

66
[lib]
@@ -46,11 +46,11 @@ btleplug = "0.11"
4646

4747
# Trezor connect library - non-iOS platforms get USB + Bluetooth
4848
[target.'cfg(not(target_os = "ios"))'.dependencies]
49-
trezor-connect-rs = { version = "0.2.2", features = ["psbt"] }
49+
trezor-connect-rs = { version = "0.2.4", features = ["psbt"] }
5050

5151
# iOS: Bluetooth only (libusb has no iOS backend, so no USB support)
5252
[target.'cfg(target_os = "ios")'.dependencies]
53-
trezor-connect-rs = { version = "0.2.2", default-features = false, features = ["bluetooth", "psbt"] }
53+
trezor-connect-rs = { version = "0.2.4", default-features = false, features = ["bluetooth", "psbt"] }
5454

5555
# JNI for Android (must match btleplug's jni version)
5656
[target.'cfg(target_os = "android")'.dependencies]

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
import PackageDescription
55

6-
let tag = "v0.1.46"
7-
let checksum = "2d0518b22404db4e4e2c78bf7d676f29893454b5a0c311dfb470d48127faf754"
6+
let tag = "v0.1.48"
7+
let checksum = "198887dcce722343abf54945765eff820b95871971cdf678c6db11f5b3e5a929"
88
let url = "https://github.com/synonymdev/bitkit-core/releases/download/\(tag)/BitkitCore.xcframework.zip"
99

1010
let package = Package(

README.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@
3030
- Derive addresses for specified paths
3131
- Retrieve account information
3232
- Handle responses from Trezor devices
33+
- Query account info from extended public keys (xpub/ypub/zpub) via Electrum
34+
- Query single address balance and UTXOs via Electrum
35+
- Compose and sign transactions
3336

3437
## Available Modules: Methods
3538
- Scanner
@@ -436,6 +439,23 @@
436439
common: Option<CommonParams>,
437440
) -> Result<DeepLinkResult, TrezorConnectError>
438441
```
442+
- [get_account_info_from_xpub](src/modules/trezor/README.md): Query account info from an extended public key via Electrum (no device required)
443+
```rust
444+
async fn get_account_info_from_xpub(
445+
extended_key: String,
446+
electrum_url: String,
447+
network: Option<TrezorCoinType>,
448+
gap_limit: Option<u32>,
449+
) -> Result<AccountInfoResult, AccountInfoError>
450+
```
451+
- [get_address_info_from_address](src/modules/trezor/README.md): Query balance and UTXOs for a single Bitcoin address via Electrum (no device required)
452+
```rust
453+
async fn get_address_info_from_address(
454+
address: String,
455+
electrum_url: String,
456+
network: Option<TrezorCoinType>,
457+
) -> Result<SingleAddressInfoResult, AccountInfoError>
458+
```
439459

440460
## Building the Bindings
441461

bindings/android/gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ android.useAndroidX=true
33
android.enableJetifier=true
44
kotlin.code.style=official
55
group=com.synonym
6-
version=0.1.46
6+
version=0.1.48
-7.09 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
-3.37 MB
Binary file not shown.

0 commit comments

Comments
 (0)