Repository navigation
STRK20 private transfers inside the vault - #45
Merged
Merged
Conversation
SNIP-44 viewing key derived and kept in the vault, the privacy SDK driven there, private operations relayed through the paymaster with policy confirmation, and CavosStarknet.privacy on the page. Moves starknet to ^10.5.0 for proof-carrying transactions.
3 of 5 tasks
Bundlers resolve a literal dynamic import even when it is never reached, so every app on @cavos/kit failed to build without the optional SDK installed. The vault script now injects the loader, and page-held keys pass privacySdk with their privacy settings.
3 of 4 tasks
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
STRK20 private transfers for Starknet wallets, run inside the Cavos vault.
account-leaf-v1) derived from the account's stark key, verified against the spec's normative vectors and 2,000 random cross-checks with Starkzap's implementation.privacyin/api/vault/policy, keyedsepolia/mainnet).get_public_key(account)from the pool and refuses if a different key is registered. It never registers a replacement.apply_action/invoke_and_apply_action), so the user's account never appears on-chain. Quotes are refused when the fee recipient is not allowed, when the fee exceedsmaxFeeor the pool's own fee, or when the approval typed data is tampered with.CavosStarknet.privacy.{status, balance, register, deposit, transfer, withdraw}.^10.5.0. v10 hashesproofFactsinto the invoke hash, which proof-carrying transactions need. No other code changed for the bump.@starkware-libs/starknet-privacy-sdkis an optional peer dependency, loaded with a dynamic import. It is bundled into the vault IIFE..npmrcmaps the scope and CI authenticates withGITHUB_TOKEN(packages: read).Test plan
npx tsc --noEmitnpx jest: 447 passed, 2 skipped. Coverage:VaultClientover aMessageChannel;npm run build.0x274c8256…c8296f, SUCCEEDED).Related
Release
Merging publishes
@cavos/kit@0.4.3.Note for integrators: starknet.js v10's
Accountno longer extendsProvider. Call provider methods throughwallet.account.provider.*rather than onwallet.accountdirectly.Apps that keep the key in the page and want privacy pass
privacySdk: () => import("@starkware-libs/starknet-privacy-sdk")together withprivacy. The npm entries never import the SDK, so apps that do not use privacy build without it.