scrtlabs / Grants

Repository for grant proposal submissions
38 stars 28 forks source link

Secret Network - Polkadot Bridge #99

Open with-one-wing opened 1 year ago

with-one-wing commented 1 year ago

Team Name

Boosty Labs

Project Description

The Secret Network - Polkadot Bridge is a decentralized platform that aims to create a secure and efficient connection between the Secret Network and the Polkadot ecosystem, including Moonbeam. The platform will enable seamless communication and transfer of data and assets between the two networks, allowing users to take advantage of the strengths of both networks.

Problem / Solution

Problem:

Currently, there is a lack of interoperability between different blockchain networks, which restricts the flow of assets and data between them. This fragmentation of the blockchain ecosystem limits the potential of decentralized applications and hinders the growth of the industry. Moreover, some blockchains may lack certain features or capabilities, which restricts the ability of developers to build innovative applications.

Solution:

The Secret Network - Polkadot Bridge aims to solve these problems by providing a secure and efficient connection between the Secret Network and the Polkadot ecosystem. The platform will enable the transfer of data and assets between the two networks, allowing users to take advantage of the strengths of both networks. For instance, the Secret Network is a privacy-focused blockchain that offers enhanced privacy features for users, while the Polkadot ecosystem provides interoperability between different blockchains. By bridging these networks, the Secret Network - Polkadot Bridge will enable the Secret Network to leverage the interoperability features of the Polkadot ecosystem to expand its reach and connect with other blockchains. This interoperability will also benefit developers by providing them with access to a wider range of tools and capabilities. By connecting with Polkadot, developers will be able to use Ethereum-based smart contracts and tools on Polkadot, enabling them to build innovative decentralized applications. Overall, the Secret Network - Polkadot Bridge will provide a seamless and secure connection between the Secret Network and Polkadot, facilitating greater interoperability and efficiency within the decentralized ecosystem

Detailed product description

The Secret Network - Polkadot Bridge will consist of two primary components: the Secret Bridge and the Polkadot Bridge. The Secret Bridge will be a module that runs on the Secret Network, while the Polkadot Bridge will be a module that runs on the Polkadot ecosystem. These two components will enable communication and data transfer between the two networks.

The Secret Bridge:

The Secret Bridge will be responsible for wrapping and unwrapping requests between the Secret Network and the Polkadot Bridge. It will consist of the following components:

  1. Wrapper/Unwrapper: The wrapper will take data from the Secret Network and convert it into a format that is compatible with the Polkadot Bridge. The unwrapper will take data from the Polkadot Bridge and convert it into a format that is compatible with the Secret Network.
  2. Validator: The validator will ensure that requests coming from the Secret Network are valid and comply with the bridge's rules and regulations.
  3. Relay: The relay will send requests to the Polkadot Bridge and receive responses from it.
  4. Secret Contract: The Secret Bridge will be implemented as a Secret Contract, which is a smart contract running on the Secret Network. This contract will manage the bridge's state, including the mapping between assets on the Secret Network and those on the Polkadot ecosystem.

The Polkadot Bridge:

The Polkadot Bridge will be responsible for handling requests from the Secret Bridge and providing responses. It will consist of the following components:

  1. Wrapper/Unwrapper: The wrapper will take data from the Secret Bridge and convert it into a format that is compatible with the Polkadot ecosystem. The unwrapper will take data from the Polkadot ecosystem and convert it into a format that is compatible with the Secret Bridge.
  2. Validator: The validator will ensure that requests coming from the Secret Bridge are valid and comply with the bridge's rules and regulations.
  3. Relay: The relay will send requests to the Secret Bridge and receive responses from it.
  4. Polkadot Smart Contract: The Polkadot Bridge will be implemented as a smart contract running on the Polkadot ecosystem. This contract will manage the bridge's state, including the mapping between assets on the Secret Network and those on the Polkadot ecosystem.

Overall Architecture:

The Secret Network - Polkadot Bridge will consist of two main components, the Secret Bridge and the Polkadot Bridge, and will operate as follows:

  1. A user will initiate a transfer request on the Secret Network.
  2. The Secret Bridge will receive the request, validate it, and convert it into a format that is compatible with the Polkadot Bridge.
  3. The Polkadot Bridge will receive the request, validate it, and convert it into a format that is compatible with the target network (e.g., Moonbeam).
  4. The target network will receive the request, validate it, and execute the transfer.
  5. The target network will send a response to the Polkadot Bridge.
  6. The Polkadot Bridge will receive the response, validate it, and convert it into a format that is compatible with the Secret Bridge.
  7. The Secret Bridge will receive the response, validate it, and convert it into a format that is compatible with the user's Secret Network account.

Go-to-Market plan

  1. Define the target audience: The first step is to identify the target audience for the Secret Network - Polkadot Bridge. This could include developers who are building on Polkadot, as well as blockchain enthusiasts who are interested in the interoperability of different blockchain ecosystems.
  2. Develop a marketing strategy: Based on the target audience, develop a marketing strategy that includes various channels such as social media, email marketing, content marketing, and partnerships. The goal is to create awareness about the Secret Network - Polkadot Bridge and its benefits.
  3. Build a community: Establish a community of early adopters and developers who are interested in using the Secret Network - Polkadot Bridge. This could be done through forums, social media groups, and developer meetups.
  4. Create educational content: Develop educational content that explains the benefits of using the Secret Network - Polkadot Bridge. This could include blog posts, tutorials, and webinars.
  5. Partner with EVM substrates: Collaborate with EVM substrates such as Moonbeam to promote the Secret Network - Polkadot Bridge as a solution for interoperability between different blockchain ecosystems.
  6. Participate in industry events: Attend industry events such as conferences and meetups to showcase the Secret Network - Polkadot Bridge and network with potential partners and users.
  7. Launch and promote: Once the Secret Network - Polkadot Bridge is ready to launch, create a launch plan that includes a press release, social media announcements, and targeted outreach to potential users and partners.
  8. Measure and iterate: Monitor the success of the go-to-market plan and make adjustments as needed. This could include tweaking the marketing strategy or adjusting the messaging to better resonate with the target audience.

Value capture for Secret Network ecosystem

The Secret Network - Polkadot Bridge is a project aimed at connecting the Secret Network blockchain with the Polkadot ecosystem. This bridge will enable the transfer of assets and data between the two networks, creating new opportunities for developers, users, and businesses. This will bring several benefits to the Secret Network ecosystem, including:

  1. Increased interoperability: The bridge will enable developers to build decentralized applications that can communicate and interact with other blockchains in the Polkadot ecosystem. This will increase the interoperability of Secret Network and allow it to leverage the unique features of other networks.
  2. Access to a larger user base: By connecting with Polkadot and EVM-compatible substrates, Secret Network will be able to tap into a larger user base and ecosystem of developers. This will increase the visibility and adoption of the network and its native token, SCRT.
  3. Enhanced functionality: The bridge will enable Secret Network to access the features and functionalities of other blockchains in the Polkadot ecosystem. This will allow developers to build more complex and feature-rich applications on the Secret Network, enhancing its utility and value.

Team members

Our team is made up of highly skilled professionals who have gained experience working with top companies such as Ledger, Zerion, Casper, Storj, Paraswap, and Consensys.

Viktor V., CTO. Expert with 17+ years’ experience as CTO, Lead and Full Stack engineer, 40+ projects. Specialises in blockchain and smart contracts development. GitHub: https://github.com/with-one-wing

Taras P., Lead frontent developer. Lead Frontend developer with experience at top crypto companies such as Blockchain and Ledger. Specialises in crypto-wallets, browser extensions and NFT development. GitHub: https://github.com/TarasPotsikaylo

Dmytro Y., Golang Developer. Golang Developer, worked with companies such as Zion, Animoca, Amuzed and over 10+ NFT projects. Specialises in dApps and web3 products development. GitHub: https://github.com/Dmytro-yakymuk

Yuliya K., QA Engineer. Experienced QA engineer with web3 projects, specialising in quality assurance for dApps including crypto wallets, bridges, and NFT marketplaces. *the list of team members stated here is not full (the final necessary team members will be listed in the point 11-Development Roadmap) and could be changed or updated.

Team Website

https://boostylabs.com/

Team's experience

Tricorn

Multichain bridge for liquidity transferring on any EVM and non-EVM chains.

Storj Labs: case here: https://boostylabs.com/cases/storj

We worked on a web app for a storage node operator dashboard, where node operators can check their statistics over the network and their payout information. We built a cloud storage management console. First we build OSS connector, created the first ever OS mirroring service that allows users to migrate easily from one cloud provider to another, etc.

Ledger

Ledger is a fast paced, growing company developing security and infrastructure solutions for cryptocurrencies as well as blockchain applications for individuals and companies, by leveraging a distinctive, proprietary technology. Boosty Labs developed all the infrastructure for https://market.ledger.com with our team. Ledger is a fast paced, growing company developing security and infrastructure solutions for cryptocurrencies as well as blockchain applications for individuals and companies, by leveraging a distinctive, proprietary technology

Consensys case here: https://boostylabs.com/cases/consensys

ConsenSys is the leading Ethereum software company. They enable developers, enterprises, and people worldwide to build next-generation applications, launch modern financial infrastructure, and access the decentralized web. Boosty Labs was working on Codefi and provided Consensys with full-stack development and QA engineering services.

Mysterium

An open-source ecosystem of tools and infrastructure to liberate the web. Boosty Labs is currently working on the product - decentralized VPN which is a global, distributed network powered by everyday people. Boosty Labs provide its back-end developers, DevOps and even CTO. So, our model of work allow clients to work with developers and even with C-level like with their own employees.

Paraswap

Paraswap is the leading DeFi aggregator that unites the liquidity of decentralized exchanges and lending protocols into one comprehensive and secure interface and APIs. The mission of Paraswap is to drive DeFi participation to new heights by offering secure, intelligent and optimized trading solutions for individuals and institutional traders to tap effortlessly into the fragmented liquidity pools. Boosty Labs helped Paraswap with the smart-contract part and provided Rust developer to be engaged into the project.

Team Code Repos

https://github.com/with-one-wing https://github.com/TarasPotsikaylo https://github.com/Dmytro-yakymuk

Development Roadmap

We will require ~ 9 weeks to complete this project. We intend to have 8 people: CTO, Rust Developer, Solidity Developer, Golang Developer, Frontend Developer, Devops, PM, QA, at a total cost of $58 825.

*please note that the total cost is not final and could vary +-10%

Example milestones:

Milestone 1: Smart contracts for cross-chain swap - 5 weeks ($25 000)

One smart contract per affected blockchain (Secret and Polkadot).

Each smart contract will have the following functionality:

Acceptance Criteria Smart contracts are deployed in three blockchains and its possible to make crosschain swap manually. Smart contract on Secret and Polkadot should accept/lock tokens that should be wrapped/minted/unlocks on Secret and Polkadot accordingly. Smart contracts admin should be able to move digital assets from one wallet to another and cancel transactions.

Milestone 2: Bridge Server - 1 week ($13 000)

Full tests coverage of lock/unlock/cancel/transfer functions on both blockchains (Secret and Polkadot). Contracts will be deployed to their respective test nets, and a manual testing script to prove functionality will be provided. This testing script will cover the positive/happy path & negative path. We deliver a centralized server that will communicate with Secret and Polkadot bridge contracts to listen for events and puh them to activate needed functions - Lock/Unlock/Cancel. Transfer will not be inside a functionality of this server to not compromise this central authority

Acceptance Criteria Bridge server connects to 2 smart contracts on Secret and Polkadot, listen an events, has all records of lock/unlocks/cancel in its database, record new events to DB and automatically works as an admin for 3 functions out of smart contract: - Lock - Unlock/mint - Cancel We will cover all code with unit tests for all this functions and main functionality of the bridge server

Milestone 3: Bridge GUI - 3 weeks ($20 825)

We will explain below user stories how bridge GUI will work.

  1. User wishes to exchange 100 Secret tokens for Polkadot wrapped Web front-end: User goes to the bridge front-end and verifies their Polkadot wallet, similar to how the web wallet works today: When the private key is imported, the user’s balance is displayed and a dialogue to transfer the 100 Polkadot tokens for Secret wrapped is presented: Balance: 100 Polkadot Amount to wrap: [ ] [max] Recipient address on Secret mainnet: [ ] Amount after fees: 95 Secret wrapped [ SWAP ] When the user clicks Transfer, the recipient's address is checked for validity, and the transaction is formed. The user’s Polkadot is sent to the multisig bridge wallet on the Polkadot chain and a local database transaction is recorded: Source Polkadot address Amount of Polkadot converted Fee in Polkadot Destination Secret address Ethereum Transaction ID Secret Transaction ID & timestamp (currently null) The Secret recipient’s address is recorded in the memo field of the Polkadot transaction. A dialogue is displayed telling them to wait up to 30 minutes for delivery of the wrapped Secret and giving them their Polkadottransaction ID.

Acceptance Criteria Web frontend is fully functional, covered with unit tests, buttons are active, frontend integrated with bridge server backend , deployed, transactions can be processed right from the frontend and posted to Ethereum or Secret network and tx hash will be generated and displayed for every transactions on GUI as a proof

Additional Information

N/A.

assafmo commented 1 year ago

Hi, can you explain why this is better than building on IBC?

https://twitter.com/ComposableFin/status/1648686483044196353?t=0ohvYLC3OZACS7CXrZVZEg&s=19

with-one-wing commented 1 year ago

Hi @assafmo

Our solution offers several advantages over the Inter-Blockchain Communication (IBC) protocol, making it a more suitable choice for cross-chain transfers:

  1. Our solution supports EVM, Non-EVM, and we are working on adding support for IBC. We don't limit ourselves to the Cosmos ecosystem, which enables us to work with a much larger number of networks than IBC. As a result, the bridge will work not only with IBC, but also with EVM/non-EVM networks in the future.

  2. Enhanced Security: We are working straight to you maintaining your own signer, ensuring a higher level of security. We use Multi-Party Computation (MPC) to provide the highest level of security for cross-chain transactions.

  3. Close Collaboration: We prioritize working closely with each blockchain we integrate with, conducting thorough audits (such as our recent audit by Halborn) and establishing strong partnerships to maintain trust and safety.

  4. Customizable and Scalable: Unlike IBC, our solution is built with flexibility in mind. We can tailor the bridge to support various networks and adapt to their unique requirements, making it more versatile and scalable.

  5. Strong Ecosystem Integration: Secret Bridge from Boosty focuses on close collaboration with the projects we support, actively engaging with their communities and working together to enhance and grow their ecosystems.

  6. User Experience: Secret Bridge from Boosty prioritizes a seamless and intuitive user experience, making it easy for users to navigate and manage cross-chain transactions, even if they are new to the blockchain and DeFi space.

  7. Dedicated Support: The Boosty team is committed to providing ongoing support and updates to ensure the bridge remains efficient and secure, addressing the needs of our users and partners. Overall, choosing Secret Bridge from Boosty over IBC allows for a more secure, flexible, and user-friendly solution that fosters stronger ecosystem integration and growth while supporting a wider range of networks.