ajinkya
    • 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
Agenda 1) How can we split the efforts to write a spec for the solving algorithm in quint. What do we need from Taiga? * set up one working group on: * quint specs * taiga * FHE hacking 2) Collaboration on the solver blockchain as suggested by Shoaib. - talk to flashbots/suave about collabs - Davie meets Andrew Miller in Barcelona next week-. 3) FHE discussion - - 1st approach: Sama/Zama approach - mincostmaxflow on encrypted data Peppe is playing with. - here's the paper: https://eprint.iacr.org/2023/981.pdf - - understand Rust transcyphering - Trivium - - 2nd approach: graph-shield - - youtube/wiki amount of data - mincostmaxflow fully encrypted and pagerank without FHE - here's the paper: https://sci-hub.st/https://doi.ieeecomputersociety.org/10.1109/TKDE.2020.3024883 - 3rd approach: linear programming by Davie and Ajinkya Ehud Shapiro - https://dblp.org/pid/s/EhudYShapiro.html - https://arxiv.org/pdf/2301.04391.pdf - https://arxiv.org/pdf/2202.05619v13.pdf Anoma research and development forum: https://research.anoma.net/ - we should have communications there for the apps we building. ## GraphShield approach - SSE (searchable symmetric encryption) - - SSE allows a data owner to encrypt its data (especially texts) such that the data can be queried given search tokens issued by the data owner, while keeping privacy of both the queries and outsourced data. - Usually encrypt inverted vectors or search trees for the special purpose of performing keyword based search. In practice, these generic solutions would incur prohibitively a huge amount computation and communication overhead. - Generalised to ‘structured encryption schemes’. - MPC based techniques - cubic complexity in number of vertices. (SA: These were the papers we looked at before.) - Other similar techniques based on oblivious data structures also have huge comm and runtime complexity. - ‘distance oracle’ based constructions - return only the approximate distance results without generating the exact path after query, and they cannot explicitly support efficient graph updates. - Uses SHE. ### Recent techniques → - **Additively homomorphic encryption (for encrypting graphs) and garbled circuits (for comparing encrypted values - GraphShield ).** - Graph encrypted as adj-list/matrix. (SA: Couldn’t find exactly how, might already have impls for this) - Already applied to Dinic! (i.e. the max-flow algo we use) - Only needs additively PHE for the most part. - The comparison is done in a ‘secure comparison protocol’ using MPC (GCs). - Support dynamic updates without re-encrypting the updated graph or using costly dynamization techniques. (SA: Not a concern for us since we don’t need to ‘update’ our payment graph) - Looks like the ‘secure comparison protocol’ is interactive, so we need to figure out if we can use it. → PL: It is indeed interactive, in the context of the secure comparison protocol, the server and the proxy would interact to compare two encrypted values without revealing any information about the values to each other. The server holds the encrypted values and the proxy holds the secret key. The server masks the encrypted values with random numbers and sends them to the proxy. The proxy then evaluates a garbled circuit to compare the masked values and sends the result back to the server. This interaction could be facilitated by the relayers in your blockchain network. 1. **Users**: Both individuals and groups can act as users in this context. They would generate query tokens and update tokens for their specific operations. If multiple users want to perform operations across shared graphs, they would need to coordinate to generate the appropriate tokens. This could be facilitated through a smart contract or other on-chain mechanism. 2. **Solvers**: Having solvers compute off-chain and then submit the encrypted results on-chain is a good way to reduce the computational load on the blockchain. This is similar to the "server" role in the GraphShield protocol. The users (or the smart contract acting on behalf of the users) can then decrypt the results on-chain when needed. 3. **Relayers**: Your idea of having relayers perform the evaluation of garbled circuits for a fee aligns well with the "proxy" role in the GraphShield protocol. The relayers would generate intermediate tokens and send the results of the garbled circuit evaluation back to the solvers or directly to the smart contract. 4. **Validators**: Validators can indeed perform standard block production tasks as well as generate zero-knowledge proofs for the operations performed by the solvers and relayers. This would provide an additional layer of security and trust in the system, as users can verify the correctness of the operations without needing to trust the solvers or relayers completely. This setup would allow you to implement the GraphShield protocol in a decentralized and secure manner on your blockchain network. However, it requires careful management of the communication between the different entities and the security of the smart contract, the solvers, and the relayers. --- # Risks of Intents & decentralizing solvers with a SUAVE like approach <aside> ⚠️ **It is not trivial to design a mechanism for intent discovery and matching which is incentive-compatible and not centralizing at the same time.** </aside> ^ Quoting https://www.paradigm.xyz/2023/06/intents#what-can-go-wrong (I think they nailed it) - The blog post also describes some solver centralization related risks. ## Some problems with the intent model - It is unclear what the solver infra will look like in the Anoma model. - Will they be centralized? - How will solvers cover op costs? - Can they charge fees? - Where will this fees be settled? - What is the medium of settlement? (How is the medium’s supply managed?) - How to guarantee an intent isn’t matched twice? (and other complexities arising from a multi-solver arch) - Will intents need ordering? - How can intents be revoked/modified? - Possible solution (from Chris Goes) - add smart expiry conditions to intents - How can intent submission be proved publicly? - Heliax believes that DAOs will develop to govern solvers and (AFAICT) doesn't want to build that infra. But the problem with DAOs is that there is a lot of friction in their ops and a centralized solver suffers from the same problems as a centralized L2 sequencer (single point of failure, DoS prone, etc.). - How can intents express a dependence on systemic metrics, for e.g. welfare schemes → > I would like my obligation to be settled iff it is in the best interest of the community. > - Possible solution (from Chris Goes) - have multiple solvers submit solutions and rank them based on systemic conditions. See also [Solver/Sequencer/TSP decentralization is an orthogonal problem!](https://www.notion.so/Solver-Sequencer-TSP-decentralization-is-an-orthogonal-problem-2da3fcb0a9d143d2b7f2b3b2392f0376?pvs=21) for why solver decentralization is still a problem even if we choose to use a Blockchain for settlement. --- # Proposal - I therefore believe there is potential for a CoFi blockchain here. - A CometBFT IBC enabled blockchain (similar to SUAVE), where users can submit their intents along with intent fees. - The blockchain can be shared by all CoFi projects. - Solvers will then compete to match these intents and can claim the intent fees by submitting a proof that the intent was fulfilled on another (Anoma?) chain. - This way we have solved all the solver problems and we also have a solver blockchain that all (CoFi) projects can share. - This also solves token issuance problems because we can now just use the native CoFi chain token. - Additionally this blockchain can support Holochain (or any other chain…) IBC integration as well by either being the pegged zone itself or providing shared security to it. ```rust The mapping of SUAVE <> Anoma would look like -> * user preferences <> intents * builders/executors <> solvers * outputs full/partial blocks <> outputs full/partial Anoma transactions ``` (IMHO, all solvers will converge on the blockchain model I described above, so this is something that has a lot of potential even outside of CoFi.)

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