Kusama Shield v2 — some questions

Hey @hantoniu-codeberg ,

Thanks for the comment, its easier if you use any of the following platforms to comment directly under the ref(so that all comments can be found in one place and responded to in a fast pace):

https://kusama.subsquare.io/

On the swap mechanism: Where does liquidity come from when users exchange tokens? Is this purely routing through the Asset Hub DEX and Snowbridge, or is there another component?

I think you are misinterpreting this a little bit.

1 - Assethub DEx aka pallet conversion on the Hub only support a certain amount of tokens(you can look up which LP pools are currently deployed on the hub here: Kheopswap) This is only use to swap DOT > KSM. (This means only assets that are registered on the Hub and have a LP pool can be swapped on assethub’s dex, this is a very small list of lp pools here)

2 - yes there is another component, mentioned several times which is opt’ing into a Portugese trading firm, allowing users to bring other assets into dotsama without KYC/annoying sign ups: Swap 60 different tokens straight into Dot on the Hub

please note: these are different ways of swapping tokens

  • Are deposits fixed denominations or variable amounts? They are fixed amounts as you can see in v1 proposal but also in the interface

  • What protections exist against timing correlation between deposits and withdrawals? It’s the same model for all ZK shielded pools, malicious actors could potentially utilize correlation attacks but with shielded pools it all depends on usage, there is no delay functionality built in. As long as there is semi-high usage correlation attacks should not be the biggest threat to users(But In order to get it black and white we have to wait and hear what the audit guy says)

  • Do users interact directly with the contract on withdrawal, or is there a relayer model? The user interacts directly with the contract. a relayer model with shielded pools often refeers to withdrawing via extra steps which is not the case for the first PoC version

  • How does bridging via Snowbridge affect the overall privacy model? Snowbridge has nothing to do with the main functionality which is a shielded pool in the form of a smart contract. Snowbridge is the bridge protocol that Kusama and Polkadot use to talk to eachother it has Nothing to do really with the smart contract on Kusama AH. Snowbridge is used by the dapp to allow users to send DOT to KSM on Kusama AH. Think of bridging and swaps as extra features to make it easy for user to convert into KSM.

On PolkaVM performance: Do you have preliminary benchmarks comparing gas costs for Poseidon hashing on PolkaVM vs standard EVM?
There is a benchmark on the frontier EVM I could find and send you, please also note that the solidity Poseidon implementations where very hard to test since the contract size has been cap’d, they are suppose to 10x the allowed contract size so things might have changed, will look this up and attach as a comment

On Zcash integration: The proposal mentions ZEC → DOT support. What bridging mechanism would enable this, and is there a timeline? Please read above comment, this was shipped already(Free of charge to the treasury as it was not covered by the v1 proposal and no retro active funding has been requested) and users has been able to swap ZEC > DOT for over a month now. On another note on Zcash, we have actually had several Zcash developers/community members look at Kusama Shield and they are very positive towards Kusama doing more privacy stuff

On network clarity: The proposal requests Kusama Treasury funding for Kusama Asset Hub, but Milestone 3 lists swap pairs as “→ DOT” rather than “→ KSM.” Can you clarify which network this targets and correct if needed?

To clarify the goal of the swaps is to provide an easy to use on-ramp into Kusama ecosystem. Practically there is a lot more liquidity and support for the DOT token so in practice users go from > DOT > KSM. This can be abstracted more in the future to say “Convert/Swap directly into KSM“ in the future. To be super clear: what we mean by Milestone 3 is provide extensive documentation for the swapping feature for example to cover Bitcoin cash guide on the docs pages(https://kusamashield.codeberg.page/) we would write a how-to guide displaying a user using a bitcoin cash wallet and swapping using the main UI into DOT and then into KSM. The goal of all swaps is to onboard people into KSM. It might be confusing as we write into DOT and then KSM.

ps.

There is a 30minute explainer video posted in the comment for the ref that tries to straighten out and paint a more clear view on features

Thanks for your comments