Skip to content

v1.0.1

Latest

Choose a tag to compare

@saltduck saltduck released this 27 Nov 07:06
40747fc

A fix release. It ships the Java Provider SDK 0.2.1, with fixes found while integrating the SDK into a desktop wallet. The specifications are unchanged.

Fixes in the Provider (pwc-provider and the Java Provider SDK 0.2.1)

  • local.hello reports the right provider_id. It used to answer pwc-provider whatever id the endpoint was started with. Clients that check the id against the socket name, pwc-client among them, refused to connect to a wallet served on its own id, such as LocalServer.start(provider, "puritywallet").
  • Backend calls no longer block the whole Provider. A wallet backend method that waits, for example for the User or a slow server, no longer holds up authentication, pairing, the answers to prompts, Provider.notify or the host's own calls. Backend methods still never run concurrently.
  • Provider.notify never blocks. It queues the event and returns at once, and may be called from inside a backend method; this used to deadlock the Provider.
  • A panic while handling a request is answered with INTERNAL_ERROR. It used to leave the request unanswered and the Provider unusable.

Upgrade

implementation("org.bitcoinpurity.pwc:pwc-provider-java:0.2.1")

The Java interface is unchanged. Core requests that need the backend still wait for a running backend method. Backend methods should therefore return promptly, and should not wait for the User or the UI thread; collect user input in the approval prompts instead.

Verified

End to end on Purity signet, with a desktop wallet as the Provider and the Python Client: pairing, reads, PSBT creation, signing and finalization, broadcast, message signing and verification, events, a refused signature, and reads answered while a signing prompt is open.

Full Changelog: v1.0.0...v1.0.1