Anton Bukov
    • Create new note
    • Create a note from template
      • Sharing URL Link copied
      • /edit
      • View mode
        • Edit mode
        • View mode
        • Book mode
        • Slide mode
        Edit mode View mode Book mode Slide mode
      • Customize slides
      • Note Permission
      • Read
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Write
        • Only me
        • Signed-in users
        • Everyone
        Only me Signed-in users Everyone
      • Engagement control Commenting, Suggest edit, Emoji Reply
      • Invitee
    • Publish Note

      Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

      Your note will be visible on your profile and discoverable by anyone.
      Your note is now live.
      This note is visible on your profile and discoverable online.
      Everyone on the web can find and read all notes of this public team.
      See published notes
      Unpublish note
      Please check the box to agree to the Community Guidelines.
      View profile
    • Commenting
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
      • Everyone
    • Suggest edit
      Permission
      Disabled Forbidden Owners Signed-in users Everyone
    • Enable
    • Permission
      • Forbidden
      • Owners
      • Signed-in users
    • Emoji Reply
    • Enable
    • Versions and GitHub Sync
    • Note settings
    • Engagement control
    • Transfer ownership
    • Delete this note
    • Save as template
    • Insert from template
    • Import from
      • Dropbox
      • Google Drive
      • Gist
      • Clipboard
    • Export to
      • Dropbox
      • Google Drive
      • Gist
    • Download
      • Markdown
      • HTML
      • Raw HTML
Menu Note settings Sharing URL Create Help
Create Create new note Create a note from template
Menu
Options
Versions and GitHub Sync Engagement control Transfer ownership Delete this note
Import from
Dropbox Google Drive Gist Clipboard
Export to
Dropbox Google Drive Gist
Download
Markdown HTML Raw HTML
Back
Sharing URL Link copied
/edit
View mode
  • Edit mode
  • View mode
  • Book mode
  • Slide mode
Edit mode View mode Book mode Slide mode
Customize slides
Note Permission
Read
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Write
Only me
  • Only me
  • Signed-in users
  • Everyone
Only me Signed-in users Everyone
Engagement control Commenting, Suggest edit, Emoji Reply
Invitee
Publish Note

Share your work with the world Congratulations! 🎉 Your note is out in the world Publish Note

Your note will be visible on your profile and discoverable by anyone.
Your note is now live.
This note is visible on your profile and discoverable online.
Everyone on the web can find and read all notes of this public team.
See published notes
Unpublish note
Please check the box to agree to the Community Guidelines.
View profile
Engagement control
Commenting
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
  • Everyone
Suggest edit
Permission
Disabled Forbidden Owners Signed-in users Everyone
Enable
Permission
  • Forbidden
  • Owners
  • Signed-in users
Emoji Reply
Enable
Import from Dropbox Google Drive Gist Clipboard
   owned this note    owned this note      
Published Linked with GitHub
Subscribed
  • Any changes
    Be notified of any changes
  • Mention me
    Be notified of mention me
  • Unsubscribe
Subscribe
--- title: Non-Custody Cross-Chain Protocol (Non-CCCP) description: A trustless cross-chain protocol using auction-based resolvers for competitive pricing and extensible to new blockchains without central authority. author: Anton Bukov (@k06a), Slavik Baranov (@SlavikBaranov) discussions-to: TBD status: Draft type: Standards Track created: 2024-09-10 category: ERC requires: SLIP-0044 --- ## Abstract <!-- The Abstract is a multi-sentence (short paragraph) technical summary. This should be a very terse and human-readable version of the specification section. Someone should be able to read only the abstract to get the gist of what this specification does. TODO: Remove this comment before submitting --> This standard defines a secure and modular solution for cross-chain asset exchange without intermediaries, enabling permissionless integration with new networks. The security of the solution is ensured through [atomic swaps (Tier Nolan, "Alt chains and atomic transfers", Bitcoin Forum, May 2013)](https://bitcointalk.org/index.php?topic=193281.0), which guarantee atomicity—either both parties successfully exchange assets, or the entire swap is canceled—allowing users to retain full control over their assets throughout the process. The solution is designed to be modular, allowing for the permissionless addition of support for new blockchains. ## Motivation <!-- This section is optional. The motivation section should include a description of any nontrivial problems the EIP solves. It should not describe how the EIP solves those problems, unless it is not immediately obvious. It should not describe why the EIP should be made into a standard, unless it is not immediately obvious. With a few exceptions, external links are not allowed. If you feel that a particular resource would demonstrate a compelling case for your EIP, then save it as a printer-friendly PDF, put it in the assets folder, and link to that copy. TODO: Remove this comment before submitting --> Current cross-chain solutions often rely on custodial models, such as Proof-of-Authority (PoA) or Proof-of-Stake (PoS), which introduce centralization and trust concerns. This standard proposes a self-custodial approach to cross-chain asset exchange, removing the need for trusted intermediaries. The modular design of the solution also allows for seamless integration with new blockchains, empowering independent developers to extend the protocol without needing permission, thus fostering broader decentralization. ## Specification <!-- The Specification section should describe the syntax and semantics of any new feature. The specification should be detailed enough to allow competing, interoperable implementations for any of the current Ethereum platforms (besu, erigon, ethereumjs, go-ethereum, nethermind, or others). It is recommended to follow RFC 2119 and RFC 8170. Do not remove the key word definitions if RFC 2119 and RFC 8170 are followed. TODO: Remove this comment before submitting --> The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174. ### Entities definition: 1. **Trader** - the party initiating the cross-chain asset exchange. 1. **Resolver** - the party accepting the cross-chain asset exchange. 1. **Operator** - the party that facilitates the use of protocol by providing neccesssary on-chain and off-chain services to both traders and resolvers. 1. **Source chain** - (trader's funds) **TODO** 1. **Destination chain** - (resolver's funds) **TODO** 1. **Trade** - the process of exchange of **Trader's** funds on the **Source chain** to **Resolver's** funds on the **Destination chain**. 1. **Order** - an offchain structure with a digital signature, confirming **Trader**'s intent to exchange source asset to destination asset that includes dutch auction setup. 1. **HLTC (escrow)** - Hashed Timelock Contract, a smart contract that locks assets until a specific condition is met. 1. **Intent Protocol** - a protocol that relies on **Order** and **Trader**'s signature to lock it's assets in a **HLTC**. ### Phases of protocol #### Creation of an off-chain order All parameters of the trade are defined in an off-chain order data structure to let the **operator** define specific constrains of the trade. Order data structure should contain: 1. Source token address 2. Destination token address 3. Source chain id 4. Destination chain id 5. Trader address on destination chain 6. Source token amount 7. Destination token amount (decreasing by dutch auction) 8. Hash of one or multiple secrets generated by the trader TODO: Serialization of order structure The order undergoes serialization and hashing, with the trader providing a digital signature to authorize the Limit Order Protocol. This process also ensures that the trader’s funds are securely escrowed upon order fulfillment. #### Pre-auction By implementing a pre-auction phase coupled with an off-chain prioritization of resolvers, the protocol effectively mitigates gas wars, turning competitive pressure into trader profits. #### Dutch auction This phase maximizes the benefits of resolver competition, channeling them directly into traders’ profits. The support for partial fills also enables even idle liquidity in market makers’ wallets to be effectively utilized. #### Escrowing trader's funds TODO: Don't forget about finality (source chain reorg protection) #### Escrowing resolver's funds TODO: Don't forget about finality (destination chain reorg protection) Any **Order**-based restrictions Intent protocol SHOULD provide order-based traits like fees or resolver set restriction or any other. **Order** data should include following fields: 1. Trader wallet address 2. List of allowed resolvers 3. #### Data representation agreements: 1. Implementation MUST use [SLIP-0044](https://github.com/satoshilabs/slips/blob/master/slip-0044.md) for "ChainID" specification #### Process agreements: 1. Protocol RECOMMENDED to use intent- and resolver-driven settlement protocol to deliver user funds in HLTC, subject for availability. #### Process: 1. Trader assets are being locked in HLTC escrow in source blockchain with SECRET and TIMELOCK_A params 2. Resolver assets are being locked in HLTC escrow in destination blockchain with same SECRET and TIMELOCK_B params ## Rationale <!-- The rationale fleshes out the specification by describing what motivated the design and why particular design decisions were made. It should describe alternate designs that were considered and related work, e.g. how the feature is supported in other languages. The current placeholder is acceptable for a draft. TODO: Remove this comment before submitting --> ### Trustless (self-custody?) Atomic swaps were chosen as the underlying mechanism due to their ultimate security and trustless nature. Atomicity allows ensuring that either both parties successfully exchange assets or the entire swap is canceled, atomic swaps eliminate the need for trusted intermediaries and provide users with full control over their assets throughout the process. ### Permissionlessly extensible The modular design of the solution was selected to enable permissionless integration with new blockchains, allowing independent developers to extend the protocol without requiring permission. This approach fosters decentralization and innovation within the cross-chain ecosystem. ### Competitive pricing TODO ## Backwards Compatibility <!-- This section is optional. All EIPs that introduce backwards incompatibilities must include a section describing these incompatibilities and their severity. The EIP must explain how the author proposes to deal with these incompatibilities. EIP submissions without a sufficient backwards compatibility treatise may be rejected outright. The current placeholder is acceptable for a draft. TODO: Remove this comment before submitting --> No backward compatibility issues found. ## Reference Implementation <!-- This section is optional. The Reference Implementation section should include a minimal implementation that assists in understanding or implementing this specification. It should not include project build files. The reference implementation is not a replacement for the Specification section, and the proposal should still be understandable without it. If the reference implementation is too large to reasonably be included inline, then consider adding it as one or more files in `../assets/eip-####/`. External links will not be allowed. TODO: Remove this comment before submitting --> ## Security Considerations <!-- All EIPs must contain a section that discusses the security implications/considerations relevant to the proposed change. Include information that might be important for security discussions, surfaces risks and can be used throughout the life cycle of the proposal. For example, include security-relevant design decisions, concerns, important discussions, implementation-specific guidance and pitfalls, an outline of threats and risks and how they are being addressed. EIP submissions missing the "Security Considerations" section will be rejected. An EIP cannot proceed to status "Final" without a Security Considerations discussion deemed sufficient by the reviewers. The current placeholder is acceptable for a draft. TODO: Remove this comment before submitting --> Needs discussion. ## Copyright Copyright and related rights waived via [CC0](../LICENSE.md).

Import from clipboard

Paste your markdown or webpage here...

Advanced permission required

Your current role can only read. Ask the system administrator to acquire write and comment permission.

This team is disabled

Sorry, this team is disabled. You can't edit this note.

This note is locked

Sorry, only owner can edit this note.

Reach the limit

Sorry, you've reached the max length this note can be.
Please reduce the content or divide it to more notes, thank you!

Import from Gist

Import from Snippet

or

Export to Snippet

Are you sure?

Do you really want to delete this note?
All users will lose their connection.

Create a note from template

Create a note from template

Oops...
This template has been removed or transferred.
Upgrade
All
  • All
  • Team
No template.

Create a template

Upgrade

Delete template

Do you really want to delete this template?
Turn this template into a regular note and keep its content, versions, and comments.

This page need refresh

You have an incompatible client version.
Refresh to update.
New version available!
See releases notes here
Refresh to enjoy new features.
Your user state has changed.
Refresh to load new user state.

Sign in

Forgot password

or

By clicking below, you agree to our terms of service.

Sign in via Facebook Sign in via Twitter Sign in via GitHub Sign in via Dropbox Sign in with Wallet
Wallet ( )
Connect another wallet

New to HackMD? Sign up

Help

  • English
  • 中文
  • Français
  • Deutsch
  • 日本語
  • Español
  • Català
  • Ελληνικά
  • Português
  • italiano
  • Türkçe
  • Русский
  • Nederlands
  • hrvatski jezik
  • język polski
  • Українська
  • हिन्दी
  • svenska
  • Esperanto
  • dansk

Documents

Help & Tutorial

How to use Book mode

Slide Example

API Docs

Edit in VSCode

Install browser extension

Contacts

Feedback

Discord

Send us email

Resources

Releases

Pricing

Blog

Policy

Terms

Privacy

Cheatsheet

Syntax Example Reference
# Header Header 基本排版
- Unordered List
  • Unordered List
1. Ordered List
  1. Ordered List
- [ ] Todo List
  • Todo List
> Blockquote
Blockquote
**Bold font** Bold font
*Italics font* Italics font
~~Strikethrough~~ Strikethrough
19^th^ 19th
H~2~O H2O
++Inserted text++ Inserted text
==Marked text== Marked text
[link text](https:// "title") Link
![image alt](https:// "title") Image
`Code` Code 在筆記中貼入程式碼
```javascript
var i = 0;
```
var i = 0;
:smile: :smile: Emoji list
{%youtube youtube_id %} Externals
$L^aT_eX$ LaTeX
:::info
This is a alert area.
:::

This is a alert area.

Versions and GitHub Sync
Get Full History Access

  • Edit version name
  • Delete

revision author avatar     named on  

More Less

Note content is identical to the latest version.
Compare
    Choose a version
    No search result
    Version not found
Sign in to link this note to GitHub
Learn more
This note is not linked with GitHub
 

Feedback

Submission failed, please try again

Thanks for your support.

On a scale of 0-10, how likely is it that you would recommend HackMD to your friends, family or business associates?

Please give us some advice and help us improve HackMD.

 

Thanks for your feedback

Remove version name

Do you want to remove this version name and description?

Transfer ownership

Transfer to
    Warning: is a public team. If you transfer note to this team, everyone on the web can find and read this note.

      Link with GitHub

      Please authorize HackMD on GitHub
      • Please sign in to GitHub and install the HackMD app on your GitHub repo.
      • HackMD links with GitHub through a GitHub App. You can choose which repo to install our App.
      Learn more  Sign in to GitHub

      Push the note to GitHub Push to GitHub Pull a file from GitHub

        Authorize again
       

      Choose which file to push to

      Select repo
      Refresh Authorize more repos
      Select branch
      Select file
      Select branch
      Choose version(s) to push
      • Save a new version and push
      • Choose from existing versions
      Include title and tags
      Available push count

      Pull from GitHub

       
      File from GitHub
      File from HackMD

      GitHub Link Settings

      File linked

      Linked by
      File path
      Last synced branch
      Available push count

      Danger Zone

      Unlink
      You will no longer receive notification when GitHub file changes after unlink.

      Syncing

      Push failed

      Push successfully