Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
943 changes: 539 additions & 404 deletions Cargo.lock

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "bitkitcore"
version = "0.1.42"
version = "0.1.43"
edition = "2021"

[lib]
Expand Down Expand Up @@ -45,11 +45,11 @@ btleplug = "0.11"

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

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

# JNI for Android (must match btleplug's jni version)
[target.'cfg(target_os = "android")'.dependencies]
Expand Down
4 changes: 2 additions & 2 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

import PackageDescription

let tag = "v0.1.42"
let checksum = "2c7c01511b5c08efe97ce3fa5b417f5d0c8afc1ae2a40b4a099ae1e834b189a0"
let tag = "v0.1.43"
let checksum = "40d4d45524c8b5a5b5aa28b0c4c65921300b5e315737362e6629f33399e3a7e1"
let url = "https://github.com/synonymdev/bitkit-core/releases/download/\(tag)/BitkitCore.xcframework.zip"

let package = Package(
Expand Down
20 changes: 20 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
- Derive addresses for specified paths
- Retrieve account information
- Handle responses from Trezor devices
- Query account info from extended public keys (xpub/ypub/zpub) via Electrum
- Query single address balance and UTXOs via Electrum
- Compose and sign transactions

## Available Modules: Methods
- Scanner
Expand Down Expand Up @@ -436,6 +439,23 @@
common: Option<CommonParams>,
) -> Result<DeepLinkResult, TrezorConnectError>
```
- [get_account_info_from_xpub](src/modules/trezor/README.md): Query account info from an extended public key via Electrum (no device required)
```rust
async fn get_account_info_from_xpub(
extended_key: String,
electrum_url: String,
network: Option<TrezorCoinType>,
gap_limit: Option<u32>,
) -> Result<AccountInfoResult, AccountInfoError>
```
- [get_address_info_from_address](src/modules/trezor/README.md): Query balance and UTXOs for a single Bitcoin address via Electrum (no device required)
```rust
async fn get_address_info_from_address(
address: String,
electrum_url: String,
network: Option<TrezorCoinType>,
) -> Result<SingleAddressInfoResult, AccountInfoError>
```

## Building the Bindings

Expand Down
2 changes: 1 addition & 1 deletion bindings/android/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ android.useAndroidX=true
android.enableJetifier=true
kotlin.code.style=official
group=com.synonym
version=0.1.42
version=0.1.43
Binary file not shown.
Binary file not shown.
Binary file modified bindings/android/lib/src/main/jniLibs/x86/libbitkitcore.so
Binary file not shown.
Binary file modified bindings/android/lib/src/main/jniLibs/x86_64/libbitkitcore.so
Binary file not shown.
Loading