Add Cavos to the wallet-integration kit list - #8
Open
adrianvrj wants to merge 2 commits into
Open
Conversation
Document Cavos as a device-native embedded self-custodial SDK (Google/Apple login, key stays on device) alongside Freighter, Stellar Wallets Kit, and Smart Account Kit.
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Cavos as a fourth Stellar wallet-integration approach.
Changes:
- Adds a Cavos integration guide and examples.
- Updates wallet comparisons and recommendations.
- Adds Cavos to repository navigation.
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 12 comments.
| File | Description |
|---|---|
README.md |
Adds Cavos navigation links. |
wallet-integration/README.md |
Adds Cavos to the integration overview. |
wallet-integration/comparison.md |
Extends comparisons with Cavos. |
wallet-integration/cavos.md |
Documents Cavos setup, signing, recovery, and sponsorship. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Comment on lines
+54
to
+57
| identity: { | ||
| userId: user.id, | ||
| email: user.email, | ||
| }, |
Comment on lines
+77
to
+88
| const url = await auth.getGoogleOAuthUrl(); | ||
| window.location.href = url; | ||
|
|
||
| const identity = await auth.handleCallback(window.location.search); | ||
|
|
||
| const wallet = await Cavos.connect({ | ||
| chain: "stellar", | ||
| network: "testnet", | ||
| appSalt: "my-app", | ||
| identity, | ||
| appId: process.env.NEXT_PUBLIC_CAVOS_APP_ID, | ||
| }); |
Comment on lines
+201
to
+205
| const { secret } = await prf.enroll({ | ||
| userId: user.id, | ||
| userName: user.email ?? user.id, | ||
| }); | ||
| await wallet.enrollPasskey(secret); |
| }); | ||
| ``` | ||
|
|
||
| Register every callback URL for your app in the Cavos dashboard. You can also bring your own identity by passing `{ userId, email }` directly. Login never signs transactions; the device key does. |
|
|
||
| ## Passkeys and Recovery | ||
|
|
||
| Passkeys enroll devices. They do not sign transactions. Signing stays with the device-native key. |
|
|
||
| - **Type:** Embedded self-custodial wallet SDK | ||
| - **User Experience:** Google or Apple login; signing key stays on the device | ||
| - **Best for:** Consumer apps that want in-app wallets without extensions or seed phrases |
| Dependencies: 1 (smart-account-kit) + Relayer setup | ||
| ``` | ||
|
|
||
| ### Cavos |
Comment on lines
+111
to
+119
| ```typescript | ||
| if (wallet.chain === "stellar" && wallet.status === "ready") { | ||
| const hash = await wallet.invokeContract({ | ||
| contractId: "C...CONTRACT", | ||
| method: "do_thing", | ||
| args: [wallet.address], | ||
| }); | ||
| } | ||
| ``` |
| }); | ||
| ``` | ||
|
|
||
| Pass `{ sponsored: false }` on execute or invokeContract to have the account pay its own fee. You can also supply your own funded source instead of the hosted relayer. |
| ``` | ||
| Complexity: ⭐⭐ Medium | ||
| Lines of code: ~50-100 | ||
| Dependencies: 1 (@cavos/kit) |
Author
|
Addressed Copilot review comments on signing-model, snippets, and React Native setup. Details:
Did not add Copilot’s production-hardening / not-production-ready banner. docs.cavos.xyz lists Stellar as available; the kit README has a status caveat, so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds Cavos to the wallet-integration guides as a fourth approach alongside Freighter, Stellar Wallets Kit, and Smart Account Kit.
Cavos is a device-native embedded self-custodial wallet SDK. Users sign in with Google or Apple. The key is created on the device and never leaves; Cavos cannot see it, sign, or move funds. No seed phrase, no extension, no MPC. Passkeys enroll additional devices and do not sign transactions. Gas sponsorship is pass-through.
Changes
wallet-integration/cavos.mdkit page (StellarG…account,@cavos/kitfor React and React Native)wallet-integration/README.mdwallet-integration/comparison.mdLinks