Repository navigation
Releases
v1.0.1
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.helloreports the rightprovider_id. It used to answerpwc-providerwhatever id the endpoint was started with. Clients that check the id against the socket name,pwc-clientamong them, refused to connect to a wallet served on its own id, such asLocalServer.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.notifyor the host's own calls. Backend methods still never run concurrently. Provider.notifynever 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
Purity Wallet Connect 1.0
The first release of Purity Wallet Connect (PWC): a family of specifications that lets applications use a Bitcoin Purity wallet without ever holding its keys, with a reference Provider, a Client library and SDKs built on them.
Each component keeps its own version; this release brings them together as project version 1.0.
Contents
Specifications
| Document | Version |
|---|---|
| PWC-CORE-001: data types, methods, permissions, Operations, errors, events | 0.2.1 |
| PWC-TRANSPORT-LOCAL-001: native applications on the same computer | 0.1.0 |
| PWC-TRANSPORT-BROWSER-001: web pages through a browser extension | 0.1.0 |
| PWC-TRANSPORT-REMOTE-001: different devices over Nostr relays | 0.1.0 |
| PWC-TRANSPORT-MOBILE-001: applications on the same phone | 0.1.0 |
| PWC-CONFORMANCE-001: conformance classes, test kit, report format | 0.1.0 |
| PWC-REGISTRY-001: names and identifiers | 0.1.0 |
| PWC-GOVERNANCE-001: license, roles, change process, security reports | 0.1.0 |
| PWC-SECURITY-001, PWC-UX-001, PWC-CLIENT-GUIDE-001, PWC-OVERVIEW-001 (informative) | 0.1.0 |
Start with the Overview.
Schemas and test kit
pwc-schema/: JSON Schemas (2020-12) for Core and the LOCAL, REMOTE and BROWSER transports, and the machine-readable registry.pwc-testkit/: test vectors, PSBT fixtures, the LOCAL conformance runner, a mock Provider and a minimal Client.
Implementations
| Component | Version | Distribution |
|---|---|---|
pwc-provider: Rust Provider, all 24 Core methods over LOCAL (Unix socket on Linux and macOS, named pipe on Windows), with an in-memory demo wallet |
0.1.0 | Source |
pwc-provider-java: Java Provider SDK, a JNI binding of pwc-provider |
0.2.0 | GitHub Packages |
pwc-client: Rust Client library, Core v0.2.1 over LOCAL (Linux and macOS) |
0.1.0 | Source |
pwc-client-ffi: Python binding of pwc-client, generated with UniFFI |
0.1.0 | Source; see pwc-client-ffi/README.md |
Java Provider SDK
Maven coordinates org.bitcoinpurity.pwc:pwc-provider-java:0.2.0 on https://maven.pkg.github.com/BitcoinPurity/pwc-spec. One jar carries the native libraries for linux-x86_64, linux-aarch64, macos-aarch64 and windows-x86_64; it is a JPMS module (org.bitcoinpurity.pwc.provider) with no other dependency. Requires Java 25; run with --enable-native-access=org.bitcoinpurity.pwc.provider.
repositories {
maven {
url = uri("https://maven.pkg.github.com/BitcoinPurity/pwc-spec")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN") // needs read:packages
}
}
}
dependencies {
implementation("org.bitcoinpurity.pwc:pwc-provider-java:0.2.0")
}Limitations
- Implemented transport: LOCAL only. BROWSER, REMOTE and MOBILE are specified but not implemented.
- The Provider's wallet backend is an in-memory simulation; host wallets supply their own backend.
- Not supported: delegated principals (LOCAL §5.8), the
awaiting_unlockstate, Taproot, multisig and hardware signers. - The Client and its Python binding run on Linux and macOS only, and the Python binding is not published as a package.
- No macOS x86_64 (Intel) library in the Java SDK; native libraries are not code-signed.
License
Documents, schemas, the registry and test vectors: CC BY 4.0. All code: MIT.