Skip to main content

zunia_sdk 0.1.1 copy "zunia_sdk: ^0.1.1" to clipboard
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 through ZuniaSessionStorage, automatic reconnection with resend of unanswered requests, and reconnection when the app returns to the foreground.
  • Same-phone flow: openZunia() opens Zunia with a ret return link, and signature requests open the wake link zunia://connect/wake?sid=….
  • Requests larger than the relay's 512 KiB frame fail before sending (INVALID_PARAMS, reason too-large). A relay QUEUE_FULL fails the request at once (NETWORK, reason queue-full).
  • ZuniaPairingView and ZuniaQrCode widgets, and the ConnectWithZuniaButton with button semantics.
  • Error codes and explainZuniaError match @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.v1 client (ZuniaNativeSessionClient, ZuniaSession) is gone, because the relay only accepts v2.
  • ZuniaConnect is replaced by ZuniaLinks and the pairing helpers.
0
likes
150
points
85
downloads

Documentation

Documentation
API reference

Publisher

verified publisherzunialab.com

Weekly Downloads

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.

Homepage
Repository (GitHub)
View/report issues

Topics

#wallet #cosmos #blockchain #qr-code #deep-linking

License

Apache-2.0 (license)

Dependencies

crypto, cryptography, flutter, http, meta, qr, url_launcher, web_socket_channel

More

Packages that depend on zunia_sdk