Repository navigation
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.