zunia_sdk 0.1.1
zunia_sdk: ^0.1.1 copied to clipboard
Connect Flutter apps to the Zunia wallet: QR pairing and deep links over zunia.connect.v2, end-to-end encrypted, with Cosmos signing and sign-in.
0.1.1 #
First release on pub.dev, same version as the npm SDK (@zunialab/sdk-* 0.1.1).
ZuniaConnectClient: pairs with Zunia mobile over zunia.connect.v2 through the Zunia relay. It covers QR pairing, the 6-digit verification code, Direct, Amino and ADR-036 signing, Sign in with Zunia (Flutter web), account and chain events, restore after a restart throughZuniaSessionStorage, automatic reconnection with resend of unanswered requests, and reconnection when the app returns to the foreground.- Same-phone flow:
openZunia()opens Zunia with aretreturn link, and signature requests open the wake linkzunia://connect/wake?sid=…. - Requests larger than the relay's 512 KiB frame fail before sending (
INVALID_PARAMS, reasontoo-large). A relayQUEUE_FULLfails the request at once (NETWORK, reasonqueue-full). ZuniaPairingViewandZuniaQrCodewidgets, and theConnectWithZuniaButtonwith button semantics.- Error codes and
explainZuniaErrormatch@zunialab/sdk-core. Crypto, pairing links and sign-in messages pass the shared test vectors.
Breaking, from the 0.1.0 code on GitHub (never published):
- The
zunia.connect.v1client (ZuniaNativeSessionClient,ZuniaSession) is gone, because the relay only accepts v2. ZuniaConnectis replaced byZuniaLinksand the pairing helpers.