Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Cargo-minimal.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2307,7 +2307,7 @@ dependencies = [

[[package]]
name = "payjoin-ffi"
version = "0.25.1"
version = "0.26.0"
dependencies = [
"async-trait",
"bdk_wallet",
Expand Down
2 changes: 1 addition & 1 deletion Cargo-recent.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2513,7 +2513,7 @@ dependencies = [

[[package]]
name = "payjoin-ffi"
version = "0.25.1"
version = "0.26.0"
dependencies = [
"async-trait",
"bdk_wallet",
Expand Down
62 changes: 62 additions & 0 deletions payjoin-ffi/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,65 @@
## [0.26.0]

- Wraps payjoin 1.3.0
- Add `classify_tx` to every receiver state that holds a fallback transaction
and is advancing the Payjoin protocol, from `MaybeInputsOwned` through
`Monitor`. Pass every consensus-encoded transaction the wallet receives to
`classify_tx` on each open session, or to `classify_receiver_tx` with a
session in any state. It returns a `Resolution` whose `resolved_by` is a
`ResolvedBy` of `Payjoin`, `Fallback` or `Unrecognized`, or none for a
transaction that spends none of the sender's original inputs, and never
reports `Payjoin` before `PayjoinProposal`.
- Add `close_session` to the same states, and `close_receiver_session` for a
session in any state. Each takes a `Resolution` and returns a
`CloseTransition` that ends the session once the wallet decides the
transaction has enough confirmations. Saving it fails with a transient
error, without persisting, if the resolution was classified from another
session, or, for `close_receiver_session`, if the session state cannot be
closed via resolution. Closing classifies the transaction again against
the session's current state.
- Remove `Monitor.check_for_transaction`, with its `TransactionFinder`
callback and `MonitorTransition`. It closed the session on first sight of
a predicted txid and never saw a spend that is neither the proposal nor
the fallback. Use `classify_tx` and `close_session` instead.
- Remove `proposal_txid_is_stable` from every receiver state. It checked
only the sender's inputs, so a legacy or P2SH-wrapped receiver input could
change the txid even when it returned true. Use `classify_tx` instead.
- To migrate from `Monitor.check_for_transaction`:
- `close_session` on a `Monitor` records `PayjoinProposalSent` whichever
transaction resolved the session, where `check_for_transaction` recorded
`Success(txid)` or `FallbackBroadcasted`. Store `resolved_by` and the
txid yourself if the app needs them.
- `classify_tx` also classifies unconfirmed transactions. Call
`close_session` only once the transaction reaches the wallet's
confirmation depth.
- Non-SegWit senders no longer need special handling.
- A `Resolution` can't be persisted, so classify the transaction again
after a restart.
- `classify_tx` raises `TransactionParseError` for bytes that don't decode
as a transaction.
- Deprecate `MaybeInputsOwned.extract_tx_to_schedule_broadcast`. Cancel the
session when the payjoin fails and broadcast the `fallback_tx` of the
resulting `ReceiverPendingFallback` instead.
- Replace `InputPairError::InvalidTransaction(String)` with
`InputPairError::TransactionDecode(TransactionParseError)`, the same error
`classify_tx` returns for bytes that do not decode. Bindings that match on
the old variant need to match the new one and read the nested
`TransactionParseError`.
- Dart: the package now ships the release's prebuilt native libraries,
and the build hook uses them instead of compiling Rust, so apps no
longer need a Rust toolchain or network access at build time. Set
`build: source` under `hooks: user_defines: payjoin:` in your app's
`pubspec.yaml` to keep compiling it.
- Python: require Python 3.11+ and replace httpx with httpx2. Callers catching
HTTP errors from `fetch_ohttp_keys` should use `httpx2.HTTPError` instead of
`httpx.HTTPError`.
- Python: the Linux wheel's library now needs at most glibc 2.17, and
the wheel is tagged `manylinux_2_17`. The macOS wheel now supports
macOS 10.15 and later, down from 13.
- The GitHub release now attaches every native library as
`payjoin_ffi-<version>-<target>.<ext>`, listed in `SHA256SUMS` and
attested. `VERIFYING.md` explains how to check one or rebuild it.

## [0.25.1]

- Wraps payjoin 1.2.0
Expand Down
2 changes: 1 addition & 1 deletion payjoin-ffi/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "payjoin-ffi"
version = "0.25.1"
version = "0.26.0"
edition = "2024"
license = "MIT OR Apache-2.0"
exclude = ["tests"]
Expand Down
13 changes: 0 additions & 13 deletions payjoin-ffi/changelog.d/check-for-transaction-migration.md

This file was deleted.

23 changes: 0 additions & 23 deletions payjoin-ffi/changelog.d/classify-tx.md

This file was deleted.

5 changes: 0 additions & 5 deletions payjoin-ffi/changelog.d/dart-prebuilt-libraries.md

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion payjoin-ffi/changelog.d/httpx2.md

This file was deleted.

5 changes: 0 additions & 5 deletions payjoin-ffi/changelog.d/input-pair-transaction-decode.md

This file was deleted.

3 changes: 0 additions & 3 deletions payjoin-ffi/changelog.d/native-release-assets.md

This file was deleted.

3 changes: 0 additions & 3 deletions payjoin-ffi/changelog.d/python-wheel-platforms.md

This file was deleted.

2 changes: 1 addition & 1 deletion payjoin-ffi/csharp/Payjoin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<IsPackable>true</IsPackable>
<PackageId>Payjoin</PackageId>
<Version>0.25.1</Version>
<Version>0.26.0</Version>
<Title>Payjoin</Title>
<Authors>Payjoin Dev Kit Contributors</Authors>
<Description>C# bindings for payjoin-ffi, generated from rust-payjoin via UniFFI.</Description>
Expand Down
4 changes: 4 additions & 0 deletions payjoin-ffi/dart/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.26.0]

- Wraps payjoin-ffi 0.26.0; see its [changelog](https://github.com/payjoin/rust-payjoin/blob/payjoin-ffi-0.26.0/payjoin-ffi/CHANGELOG.md).

## [0.25.1]

- Wraps payjoin-ffi 0.25.1; see its [changelog](https://github.com/payjoin/rust-payjoin/blob/payjoin-ffi-0.25.1/payjoin-ffi/CHANGELOG.md).
Expand Down
2 changes: 1 addition & 1 deletion payjoin-ffi/dart/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: payjoin
description: Dart bindings for payjoin
version: 0.25.1
version: 0.26.0
homepage: https://github.com/payjoin/rust-payjoin
repository: https://github.com/payjoin/rust-payjoin

Expand Down
4 changes: 4 additions & 0 deletions payjoin-ffi/javascript/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.26.0]

- Wraps payjoin-ffi 0.26.0; see its [changelog](https://github.com/payjoin/rust-payjoin/blob/payjoin-ffi-0.26.0/payjoin-ffi/CHANGELOG.md).

## [0.25.1]

- Wraps payjoin-ffi 0.25.1; see its [changelog](https://github.com/payjoin/rust-payjoin/blob/payjoin-ffi-0.25.1/payjoin-ffi/CHANGELOG.md).
Expand Down
4 changes: 2 additions & 2 deletions payjoin-ffi/javascript/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion payjoin-ffi/javascript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "payjoin",
"version": "0.25.1",
"version": "0.26.0",
"description": "JavaScript/WASM bindings for rust-payjoin (EXPERIMENTAL)",
"scripts": {
"ubrn:nodejs": "ubrn build web --release --and-generate --config ubrn.nodejs.config.yaml",
Expand Down
4 changes: 4 additions & 0 deletions payjoin-ffi/python/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## [0.26.0]

- Wraps payjoin-ffi 0.26.0; see its [changelog](https://github.com/payjoin/rust-payjoin/blob/payjoin-ffi-0.26.0/payjoin-ffi/CHANGELOG.md).

## [0.25.1]

- Wraps payjoin-ffi 0.25.1; see its [changelog](https://github.com/payjoin/rust-payjoin/blob/payjoin-ffi-0.25.1/payjoin-ffi/CHANGELOG.md).
Expand Down
2 changes: 1 addition & 1 deletion payjoin-ffi/python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description = "The Python language bindings for the Payjoin Dev Kit"
readme = "README.md"
requires-python = ">=3.11"
license = "MIT"
version = "0.25.1"
version = "0.26.0"
dependencies = ["httpx2>=2.16,<3.0"]

[tool.setuptools]
Expand Down
2 changes: 1 addition & 1 deletion payjoin-ffi/python/uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion payjoin-ffi/src/receive/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1068,7 +1068,7 @@ pub trait IsInputOwned: Send + Sync {

#[uniffi::export]
impl MaybeInputsOwned {
/// Deprecated since payjoin 0.0.0-unreleased: cancel the session when the payjoin
/// Deprecated since payjoin 1.3.0: cancel the session when the payjoin
/// fails and broadcast the `fallback_tx` of the resulting `ReceiverPendingFallback`
/// instead.
///
Expand Down
Loading