11# Dusk Wallet Discovery Standard
22
3- This document defines the canonical browser discovery flow for Dusk wallets.
3+ This document is the canonical browser discovery protocol for Dusk wallets.
4+ It deliberately does not duplicate the provider RPC specification. The
5+ provider API is owned by
6+ [ dusk-network/wallet docs/provider-api.md] ( https://github.com/dusk-network/wallet/blob/main/docs/provider-api.md ) .
47
58If you want an implementer-oriented walkthrough with a minimal provider fixture,
69see [ wallet-implementer.md] ( ./wallet-implementer.md ) .
@@ -78,9 +81,17 @@ Expected semantics:
7881
7982Wallets should keep ` uuid ` stable across page loads and product versions. dApps should de-duplicate discovered wallets by ` uuid ` .
8083
81- ## Provider Contract
84+ ## Provider Summary
8285
83- The announced ` provider ` should expose the Dusk provider API:
86+ Discovery only hands the dApp a provider object. The current v0.1 provider
87+ identity model is profile-based:
88+
89+ - connect with ` dusk_requestProfiles `
90+ - read current grants with ` dusk_profiles `
91+ - listen for ` profilesChanged `
92+ - request a ` shieldedAddress ` only through explicit user approval
93+
94+ The provider should expose:
8495
8596- ` request({ method, params }) `
8697- ` on ` , ` once ` , ` off ` , ` removeListener ` , ` removeAllListeners `
@@ -90,21 +101,9 @@ The announced `provider` should expose the Dusk provider API:
90101- ` isAuthorized `
91102- ` isDusk === true `
92103
93- RPC methods remain Dusk-prefixed:
94-
95- - ` dusk_getCapabilities `
96- - ` dusk_requestProfiles `
97- - ` dusk_profiles `
98- - ` dusk_requestShieldedAddress `
99- - ` dusk_chainId `
100- - ` dusk_switchNetwork `
101- - ` dusk_getPublicBalance `
102- - ` dusk_estimateGas `
103- - ` dusk_sendTransaction `
104- - ` dusk_watchAsset `
105- - ` dusk_signMessage `
106- - ` dusk_signAuth `
107- - ` dusk_disconnect `
104+ See the wallet repo's
105+ [ provider API] ( https://github.com/dusk-network/wallet/blob/main/docs/provider-api.md )
106+ for the canonical method, event, error, permission, and limit definitions.
108107
109108## Selection Rules
110109
0 commit comments