Standard Grant Proposal: HTLC Upgrade for Sia for use in Atomic Swaps

Project Name: HTLC Upgrade for Sia for use in Atomic Swaps

Name of the organization : Komodo Platform

Project Description:
Based off of the work in a prior SIA grant; Grant Proposal: Sia Atomic Swap with Adaptor Signatures Feasibility Study - #10 , we are submitting a proposal to add HTLC functionality and integration into our Atomicdex protocol of Sia to facilitate atomic swaps.

We have received feedback from the Sia developers regarding our previously delivered work regarding Sia DEX integrations. The Sia team has begun work on implementing our https://github.com/KomodoPlatform/sia_adaptor_sig_study/blob/main/hltc_emulator_protocol/option2_spend_policies.md

here: types: Add PolicyAfter and PolicyHash · SiaFoundation/core@c2d9fd9 · GitHub

The current timeline for when this will be deployed into mainnet consensus is unclear. Komodo Platform developers would like to develop the necessary tools for real world DEX trading in parallel to this ongoing development from the Sia developers.

Objectives:

  • Integrate wallet support for SIA into Komodo Wallet

  • Integrate atomic swap support for SIA within Komodo Wallet DEX. Provide support across a multitude of blockchains. “BTC-like” blockchains and EVM-based coins and tokens at a minimum

  • Provide the Sia team the necessary tools and knowledge base to deploy a white label version of this software if desired. Eg, “SiaDEX”

Who benefits from your project?

The SIA community benefits from extending HTLC atomic swaps, providing a method to engage in P2P exchange and reducing reliance on centralized third-parties for the acquisition or liquidation of SIA coin.

How does the project serve the Foundation’s mission of user-owned data?

“Coins” on a fundamental level are data, ledger entries on blockchain. This project serves the foundations mission of user-owned data by allowing users of SIA coin to non-custodially hold and trustlessly exchange data with other peers .

Budget Estimate:

The total budget estimation for the project stands at $100,000. This is based on an estimate of 1000 hours at a rate of $100/hour. Our rate is justified by our extensive experience and the specialized skills required for this project.

Timeline / Milestones :

Milestone #1 Scope of Work Completion
Description:
The initial scope of work phase is to determine exact work needed to complete the project, including assigning of personnel and tasks. SoW report delivered when complete.

Estimated time: 4-6 weeks

Milestone #2 Development Phase Completion

Description: Development Work on HTLC upgrade and integration into the Atomic Swap Protocol . A summary report will be provided when complete along with monthly updates.

Estimated Time: 8-12 weeks

Milestone #3 QA Completion

Description: Extensive Quality Assurance on the new swap protocol ensuring its safety and reliability.

A test report will be handed over at the completion of the milestone

Estimated Time: 12-16 weeks

Milestone # 4 App Release

Description: Finalizing SIA coin integration and release in Komodo Wallet DEX; A Demo will be provided of the integration into the Komodo Wallet and atomic swap exchange of SIA coin upon completion.

Estimated Time: 4-6 weeks

Total Estimated Time 8-10 Months
Payment Schedule: Monthly, if completed before month 10 , the remaining balance will be due upon completion of the final milestone.

Development Information:

The project will be open source and will be hosted on the Komodo Platform Github

The project will post monthly updates

Contact Information:

E-mail: jason@komodoplatform.com

Just want to put in my opinion regarding a white-label version of atomicdex. If regulations in the US are going where I think they are, the future of accessing DEX’s are via web3 itself and centralized frontends will not be allowed. That would put a KYC burden on the foundation.

Komodo could maintain a branch for Sia on GitHub, but the foundation should not have the burden of hosting it.

Hello @kmd,
Thanks for your proposal!

The committee is definitely intrigued by this grant idea, and appreciated your work on the feasibility study. They are requesting a few items for further evaluation.

  • Your budget breakdown is lacking, requesting $100,000 without citing destination of funds. We understand that you had an expense breakdown in your report from the feasibility study, but that should be present here, and ideally expanded upon in more detail.
  • Your milestones are very high level. Please provide more detail here.
  • Finally, you cited no risks for your project.

Should you decide to make these updates to your proposal, the committee will re-review.

Thank you,
Kino on behalf of the Sia Foundation and Grants Committee

Thank you for the feedback

We will work on getting the missing information updated promptly.

Project Name: HTLC Upgrade for Sia for use in Atomic Swaps

Name of the organization: Komodo Platform and Van Ketting BV

Project Description:

Based off of the work in a prior SIA grant; Grant Proposal: Sia Atomic Swap with Adaptor Signatures Feasibility Study - #10 3 , we are submitting a proposal to add HTLC functionality and integration into our Komodo DeFi Framework (DEX) protocol of Sia to facilitate atomic swaps.

We have received feedback from the Sia developers regarding our previously delivered work regarding Sia DEX integrations.

The Sia team has begun work on implementing our https://github.com/KomodoPlatform/sia_adaptor_sig_study/blob/main/hltc_emulator_protocol/option2_spend_policies.md

Here:

https://github.com/SiaFoundation/core/commit/c2d9fd9da64658e1cadbafffc0e5d85dae80b1dd

The current timeline for when this will be deployed into mainnet consensus is unclear. Komodo Platform developers would like to develop the necessary tools for real world DEX trading in parallel to this ongoing development from the Sia developers.

Objectives:

Integrate wallet support for SIA into Komodo Wallet

Integrate atomic swap support for SIA within Komodo Wallet DEX. Provide support across a multitude of blockchains. “BTC-like” blockchains and EVM-based coins and tokens at a minimum

Provide the Sia team the necessary tools and knowledge base to deploy a white label version of this software if desired. Eg, “SiaDEX”

Who benefits from your project?

The SIA community benefits from extending HTLC atomic swaps, providing a method to engage in P2P exchange and reducing reliance on centralized third-parties for the acquisition or liquidation of SIA coins.

How does the project serve the Foundation’s mission of user-owned data?

“Coins’ ’ on a fundamental level are data, ledger entries on blockchain. This project serves the foundation’s mission of user-owned data by allowing users of SIA coin to non-custodially hold and trustlessly exchange data with other peers .

Budget Estimate:

The total budget estimation for the project stands at $100,000. This is based on an estimate of 1000 hours at a rate of $100/hour. Our rate is justified by our extensive experience and the specialized skills required for this project.

The $100,000 will be spent on personnel including

Full-Time Developers

QA/Testers

Additionally we will leverage Komodo developer resources to complete the task at hand as needed

Budget & Milestones

Summary:

Total Estimated Time: 8-10 Months

Total Budget: $100,000

Total Estimated Hours: 1000 hours

Detailed Allocation:

Milestone #1 (Scope of Work): $10,000 (100 hours)

Milestone #2 (Development): $40,000 (400 hours)

Milestone #3 (QA): $40,000 (400 hours)

Milestone #4 (App Release): $10,000 (100 hours)

Milestone #1: Scope of Work Completion

Estimated Time: 4-6 weeks

Budget Allocation: 100 hours x $100/hour = $10,000

The initial scope of work phase is to determine exact work needed to complete the project, including assigning of personnel and tasks. During this phase we will investigate deeper into all the steps necessary to complete integration into Komodo Wallet and dexp2p network, further investigation into the HTLC integration form a detailed plan to execute development, including giving more firm estimation of man-hours involved, SoW report delivered when complete.

Milestone #2: Development Phase Completion

Estimated Time: 8-12 weeks

Being a core phase, a significant portion of the budget should be allocated here.

Budget Allocation: 400 hours x $100/hour = $40,000

Development Work on HTLC upgrade and integration into the Atomic Swap Protocol . Development work will consist of protocol integration of Siacoin into the Komodo Wallet and dexp2p network; development of atomic swap sequence using Sia’s pending SpendPolicy upgrade, A summary report will be provided when complete along with monthly updates.

Milestone #3: QA Completion

Estimated Time: 12-16 weeks

QA is crucial, especially in blockchain projects, for ensuring security and reliability.

Budget Allocation: 400 hours x $100/hour = $40,000

Extensive Quality Assurance on the new swap protocol ensuring its safety and reliability. QA is done alongside documentation and postman collection updates for each feature branch. We have automated tests which run on each pull request after CI/CD binaries are built. Further testing is done in a variety of environments to confirm functionality on win/mac/linux and across tcp/wss. For the apps, we use testgrid.io for automated tests, but also have manual sessions on a variety of devices with the intention of trying to break things, find edge cases with non-standard sequences and ensure no regression.

Milestone #4: App Release

Estimated Time: 4-6 weeks

Finalizing SIA coin integration and release in Komodo Wallet DEX; A Demo will be provided of the integration into the Komodo Wallet and atomic swap exchange of SIA coin upon completion.

Budget Allocation: 100 hours x $100/hour = $10,000

A test report will be handed over at the completion of the milestone.

Risks:

Possible risks that could delay completion of the project in the allotted time include

SpendPolicy adoption delay to mainnet

Unforeseen issues in HTLC emulation leading to inaccurate estimation

Developer Catastrophe

These risks will be mitigated as much as they are in our power to do so, to ensure that we complete the grant in the allotted time.

If delays are to occur for one reason or another, we will immediately inform the Sia Grant Committee upon our discovery and plan with the how to move forward accordingly

Development Information:

The project will be open source and will be hosted on the Komodo Platform Github

The project will post monthly updates

Contact Information:

E-mail: partners@komodoplatform.com

@Kinomora here’s the updated proposal. We’re looking forward to your feedback.