Start
Glyph Connect overview
Build a verified Qubic mainnet connection with the released v2 protocol.
Build the supported connection flow with @glyph-oss/connect@4.0.1, @qubic.org/crypto@1.0.0 for dApp-side verification, Relay v2, and Glyph Wallet v0.16.5.
The released v2 flow
- Build a typed request with a nonce and expiry.
- Create a
glyph-connect-request/2envelope with an explicitqubic:mainnetnetwork binding. The deep link starts withglyph://v2/request?d=and includes arequest_hash. - Prepare and register a Relay v2 session before the user action. Give the wallet its callback URL, keep the read capability in the dApp, and launch synchronously from the user's click or tap.
- Accept the result only after verifying the signed
glyph-connect-callback-envelope/2against the request hash, network, dApp origin, expiry, callback binding, deterministicissued_at, andresult_hash(sha256:<base64url>).
The starter-dapp repository is the canonical runnable example.
