@partylayer/sdk 0.22.0 → 0.22.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -74,7 +74,7 @@ const client = createPartyLayer({
74
74
  | `adapters` | Replaces the included catalog |
75
75
  | `registryUrl` | Defaults to `https://registry.partylayer.xyz` |
76
76
 
77
- Hosted wallets require the user's own login and approval. Send is Mainnet-only in the catalog. See [configuration and wallet limits](https://partylayer.xyz/docs/wallets).
77
+ Hosted wallets require the user's own login and approval. Match the network selected in Send Connect to the dApp. See [configuration and wallet limits](https://partylayer.xyz/docs/wallets).
78
78
 
79
79
  ## Supported wallets
80
80
 
@@ -84,13 +84,13 @@ Generated from the stable registry and active SDK integrations. This is capabili
84
84
  | Wallet | Networks | Capabilities | Opt-in | Additional setup |
85
85
  |--------|----------|--------------|--------|---------|
86
86
  | Console Wallet | devnet, testnet, mainnet | signMessage, submitTransaction, restore | No | Included |
87
- | 5N Loop | devnet, mainnet | signMessage, submitTransaction, ledgerApi, restore, events | No | Included |
88
- | Cantor8 | devnet, mainnet | submitTransaction, events | No | Included |
87
+ | 5N Loop | devnet, mainnet, testnet | signMessage, submitTransaction, ledgerApi, restore, events | No | Included |
88
+ | Cantor8 | devnet, mainnet | signMessage, submitTransaction, events | No | Included |
89
89
  | Bron | devnet, testnet, mainnet | signMessage, signTransaction, ledgerApi, restore | Yes | Your OAuth/API configuration |
90
90
  | Nightly | devnet, testnet, mainnet | signMessage, submitTransaction, ledgerApi, restore, events | No | Included |
91
91
  | Cauri Wallet | devnet, mainnet | signMessage, submitTransaction | No | Included |
92
92
  | OneSwap V2 Wallet | devnet, mainnet | signMessage, submitTransaction | No | Included |
93
- | Send | mainnet | signMessage, submitTransaction, ledgerApi, restore, events | No | Included |
93
+ | Send | mainnet, testnet, devnet | signMessage, submitTransaction, ledgerApi, restore, events | No | Included |
94
94
  | Walley | mainnet, testnet, devnet | signMessage, submitTransaction | No | Included |
95
95
  | WalletConnect | devnet, testnet, mainnet | signMessage, submitTransaction, ledgerApi, restore, events | Yes | Your project ID |
96
96
  <!-- WALLETS:END -->
@@ -139,6 +139,50 @@ Handle user rejection, unavailable wallets, timeouts, network mismatch and unsup
139
139
 
140
140
  `client.on(event, handler)` returns an unsubscribe function. Release subscriptions and destroy clients you create when their owner is disposed. Never call `destroy()` on the client managed by a still-mounted React kit.
141
141
 
142
+ ## Native applications
143
+
144
+ The native entry is available from SDK 0.22.1; SDK 0.22.0 does not include it.
145
+ React Native applications should normally install `@partylayer/react-native` 2.0
146
+ or later: it bundles the same native implementation without installing the web
147
+ SDK dependency graph. The direct SDK package retains that graph for its browser
148
+ wallet catalog.
149
+
150
+ Import `createPartyLayer` from `@partylayer/sdk/native` for a native application. This
151
+ entry shares the SDK client implementation, but registers only the native-compatible
152
+ adapters/providers your application supplies. It excludes browser wallet runtimes and
153
+ disables browser extension discovery. With no configured transport, the wallet list is empty.
154
+
155
+ ```ts
156
+ import { createPartyLayer } from '@partylayer/sdk/native';
157
+
158
+ const client = createPartyLayer({
159
+ network: 'devnet',
160
+ app: { name: 'Native application', origin: 'myapp://' },
161
+ adapters: [myNativeCompatibleAdapter],
162
+ });
163
+ ```
164
+
165
+ Automatic `walletConnect` and `bron` options belong to the browser entry. Native callers
166
+ must supply a compatible transport through `adapters`; configuring those browser-only
167
+ options on the native entry produces an explicit error. React Native applications can
168
+ use `@partylayer/react-native`, which selects this entry and provides Linking and storage
169
+ building blocks. See that package's README for a development transport fixture.
170
+
171
+ ### Secure randomness and session caches
172
+
173
+ New session identifiers require WebCrypto `getRandomValues`. A native runtime
174
+ without it must supply the `crypto` option with a secure platform-backed
175
+ `randomBytes(byteLength)` method returning exactly that many bytes as a `Uint8Array`
176
+ or a Promise for one, alongside the adapter's encryption, decryption and key-generation
177
+ methods. Encryption keys or key handles are never used as session identifiers.
178
+
179
+ The default encryption implementation requires WebCrypto AES-GCM; unavailable or
180
+ failed cryptography does not downgrade to plain base64. Valid AES-GCM cache records
181
+ remain supported. Unsupported legacy records require a wallet reconnect. Session
182
+ identifiers are client lifecycle identifiers, not server authentication credentials.
183
+ Cache encryption does not establish wallet identity or replace wallet-side restore
184
+ validation and independent server authorization.
185
+
142
186
  ## License
143
187
 
144
188
  MIT