EZKL Profile picture
Dec 26, 2024 13 tweets 2 min read Read on X
EZKL is revolutionizing DeFi.

By using Convex Optimization combined with EZKL, we can now prove trading strategies are optimal and enable new financial products on-chain that don't compromise on security.

Here's why this matters for the future of finance: Image
Traditional DeFi has a limitation:

The Ethereum Virtual Machine (EVM) can't handle complex calculations.

This means AMMs like Uniswap have been restricted to using simple formulas that don't always capture market complexity.

But EZKL changes this:
EZKL lets us generate zero-knowledge cryptographic proofs that show:

• A solution to an optimization problem is optimal
• A specific optimization algorithm was followed
• Each optimization step was calculated correctly

This unlocks entirely new possibilities for DeFi:
Two EZKL team members demonstrated this at ETHGlobal Singapore 2024.

They created COCSwap (Convex Optimization Calculation Swap).

It introduces new trading strategies that improve capital efficiency through zero-knowledge proofs.

Let's break down how it works:
First, understand convex optimization:

Picture a curve on a graph.

If you connect any two points with a straight line, and that line never dips below the curve - that's a convex function.

This property is crucial for trading:
A strictly convex function has only one minimum point.

This means when solving optimization problems, we're guaranteed to find the best solution.

No local minima to get stuck in.

This is particularly valuable for building AMMs:
Traditional AMMs are constrained by what's possible on-chain.

But EZKL allows us to:

• Run optimizations off-chain
• Prove the optimization solution is optimal
• Verify the result/update on-chain

This enables sophisticated trading strategies previously difficult in DeFi:
One example is Markowitz trading:

It optimizes the risk-return tradeoff for each trade from the AMM's perspective.

And every calculation can be cryptographically proven:
The current implementation shows both promise and challenges:

Gas costs are higher (~600k vs 184,523 for Uniswap).

But there are solutions being explored:

• Batching mechanisms
• Optimization of proof generation
• Testing for optimal conditions without loops
The real innovation is broader than AMMs:

EZKL can prove any convex optimization solution is correct.

This applies to:

• Portfolio optimization
• Control systems
• Matrix inversions
• General optimization problems
Some optimization problems don't need every step proven.

We can verify optimality through explicit conditions.

This is particularly valuable for closed-source optimization solvers.

The implications extend far beyond trading:
EZKL can enable:

• Proof of training for machine learning
• Verification of optimization processes
• Complex financial calculations
• Advanced market making strategies

All with mathematical guarantees.
This is a fundamental shift in DeFi:

Moving from simple formulas to proven optimal solutions.

You can read more about it here:

blog.ezkl.xyz/post/cocswap/

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with EZKL

EZKL Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @ezklxyz

Nov 28, 2023
1/⚙️ZKML with Accelerated Hardware

We've integrated the Icicle GPU acceleration library into EZKL, in collaboration with the Ingonyama team.

While we've written about the specifics, we also discuss broader strategies for hardware acceleration with ZKML systems. Image
2/📋Preliminary Results

Against a baseline CPU run for aggregate circuits, we observe a ~98% reduction in MSM times and ~35% reduction in total aggregate proof time. 🚀
3/📝We've published context and technical specifications here:

Continue reading for a summary or jump right into the library here: blog.ezkl.xyz/post/accelerat…
github.com/zkonduit/ezkl#…
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Don't want to be a Premium member but still want to support us?

Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal

Or Donate anonymously using crypto!

Ethereum

0xfe58350B80634f60Fa6Dc149a72b4DFbc17D341E copy

Bitcoin

3ATGMxNzCUFzxpMCHL5sWSt4DVtS8UqXpi copy

Thank you for your support!

Follow Us!

:(