Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    10,244,649.3KRW

    1.9%

  • ETH

    194,317.0KRW

    3.5%

  • XRP

    270.7KRW

    2.9%

  • BCH

    392,925.2KRW

    5.9%

  • BSV

    346,322.8KRW

    -3.6%

  • USDT

    1,160.5KRW

    0.1%

  • EOS

    4,450.2KRW

    4.9%

  • LTC

    54,759.1KRW

    -0.5%

  • BNB

    20,450.5KRW

    4.6%

  • ETC

    11,737.6KRW

    28.7%

  • TRX

    20.0KRW

    3.8%

  • XMR

    76,120.8KRW

    1.7%

  • XLM

    65.6KRW

    6.2%

  • ADA

    49.5KRW

    5.2%

  • DASH

    137,815.7KRW

    -3.4%

  • XTZ

    1,752.7KRW

    13.8%

  • ATOM

    5,660.8KRW

    12.1%

  • NEO

    13,217.2KRW

    4.4%

  • HT

    3,742.1KRW

    1.4%

  • HEDG

    2,628.6KRW

    0.6%

  • MKR

    582,868.9KRW

    -1.7%

  • ZEC

    61,478.1KRW

    7.5%

  • ONT

    801.6KRW

    3.8%

  • USDC

    1,162.5KRW

    0.0%

  • VET

    7.3KRW

    8.4%

  • XEM

    45.1KRW

    8.6%

  • BAT

    259.2KRW

    2.7%

  • DOGE

    2.7KRW

    2.0%

  • PAX

    1,167.2KRW

    0.4%

  • BTG

    14,561.2KRW

    -4.3%

  • DCR

    23,466.9KRW

    -6.5%

  • QTUM

    2,296.5KRW

    5.5%

  • INB

    573.4KRW

    2.3%

  • REP

    18,219.2KRW

    -9.0%

  • ZRX

    288.5KRW

    2.6%

  • RVN

    32.3KRW

    10.4%

  • LINK

    485.1KRW

    2.0%

  • TUSD

    1,164.3KRW

    0.1%

  • BCD

    792.5KRW

    -2.5%

  • ALGO

    283.0KRW

    2.0%

  • CNX

    2,514.6KRW

    1.2%

  • XIN

    276,337.6KRW

    5.3%

  • XIN

    276,337.6KRW

    5.3%

  • OMG

    910.3KRW

    3.3%

  • NANO

    811.8KRW

    4.6%

  • THETA

    123.1KRW

    5.1%

  • KCS

    1,269.2KRW

    0.1%

  • WAVES

    1,018.4KRW

    1.4%

  • LSK

    839.5KRW

    10.8%

  • DGB

    7.9KRW

    4.3%

  • BTM

    99.8KRW

    4.0%

  • BTM

    99.8KRW

    4.0%

  • MONA

    1,430.4KRW

    18.8%

  • ICX

    175.5KRW

    8.5%

  • KMD

    761.5KRW

    8.8%

  • MCO

    5,665.0KRW

    3.4%

  • IOST

    6.8KRW

    5.2%

  • HC

    1,720.2KRW

    4.5%

  • SC

    1.8KRW

    1.4%

  • XVG

    4.6KRW

    1.8%

  • ENJ

    90.5KRW

    -0.8%

  • NEXO

    124.0KRW

    10.9%

  • ABBC

    123.9KRW

    0.4%

  • BCN

    0.4KRW

    6.2%

  • ZIL

    6.1KRW

    4.4%

  • BTS

    21.8KRW

    5.4%

  • STEEM

    164.1KRW

    0.7%

  • AE

    190.3KRW

    5.0%

  • XZC

    5,877.5KRW

    -0.9%

  • MATIC

    21.2KRW

    16.3%

  • ARDR

    52.3KRW

    8.3%

  • QNT

    4,060.1KRW

    7.1%

  • ETN

    4.7KRW

    -0.0%

  • MANA

    43.2KRW

    0.9%

  • SNT

    12.1KRW

    4.0%

  • DAI

    1,164.7KRW

    0.4%

  • NPXS

    0.2KRW

    3.1%

  • TOMO

    562.2KRW

    4.4%

  • GNT

    38.8KRW

    0.9%

  • MAID

    84.0KRW

    -4.8%

  • STRAT

    380.7KRW

    5.7%

  • ELF

    68.8KRW

    2.5%

  • ELA

    1,836.4KRW

    0.7%

  • FET

    47.6KRW

    4.0%

  • AION

    76.7KRW

    6.0%

  • LRC

    28.9KRW

    4.3%

  • TRUE

    310.9KRW

    4.6%

  • RDD

    0.8KRW

    -0.5%

  • WAX

    22.9KRW

    1.7%

  • WTC

    527.6KRW

    -2.6%

  • LAMB

    32.4KRW

    2.7%

  • FCT

    2,479.9KRW

    5.7%

  • PPT

    401.1KRW

    3.6%

  • ARK

    176.7KRW

    4.7%

  • POWR

    48.0KRW

    1.2%

  • R

    41.6KRW

    0.7%

  • ANT

    645.5KRW

    -1.1%

  • LOOM

    20.2KRW

    -1.0%

  • PAI

    12.9KRW

    4.8%

  • PAI

    12.9KRW

    4.8%

  • BNT

    257.6KRW

    1.4%

  • DENT

    0.2KRW

    14.3%

  • PIVX

    301.5KRW

    -2.0%

  • OCEAN

    46.5KRW

    3.5%

  • MOAC

    259.9KRW

    -2.4%

  • ABT

    162.1KRW

    3.6%

  • CET

    17.2KRW

    3.0%

  • ODE

    59.3KRW

    1.3%

  • TTC

    33.0KRW

    -0.2%

  • AOA

    1.9KRW

    3.9%

  • POLY

    21.7KRW

    1.4%

  • PAY

    47.6KRW

    4.0%

  • REPO

    59.8KRW

    3.0%

  • MBL

    1.7KRW

    4.5%

  • BORA

    9.5KRW

    2.2%

  • CPT

    1.9KRW

    1.5%

  • BCV

    6.2KRW

    -2.3%

  • BAAS

    1.1KRW

    2.1%

  • COSM

    7.6KRW

    1.4%

  • GUSD

    1,151.6KRW

    -0.3%

  • FLETA

    9.2KRW

    1.5%

  • FNB

    2.2KRW

    5.2%

  • UPP

    11.0KRW

    -5.1%

  • HUM

    6.7KRW

    -1.4%

  • EOSC

    3.3KRW

    1.2%

  • AERGO

    30.2KRW

    3.1%

  • MVL

    0.4KRW

    -1.9%

  • DCC

    0.9KRW

    0.1%

  • LKY

    48.6KRW

    0.1%

  • eDEL

    2.4KRW

    -0.7%

  • RBG

    0.7KRW

    -13.5%

  • VRA

    0.5KRW

    -2.0%

  • ABL

    7.0KRW

    -8.9%

  • TEMCO

    0.5KRW

    -3.9%

  • AID

    3.0KRW

    -8.3%

  • MEETONE

    0.7KRW

    8.4%

  • AMON

    2.1KRW

    9.1%

  • PXL

    21.8KRW

    2.3%

  • AKRO

    0.8KRW

    -5.8%

  • XRA

    7.8KRW

    0.2%

  • WET

    4.0KRW

    1.8%

  • HORUS

    0.7KRW

    42.5%

  • CLB

    1.2KRW

    -15.8%

  • RBTC

    10,087,250.7KRW

    6.4%

  • WIKEN

    1.6KRW

    6.4%

  • NEWS

    1.7KRW

    45.9%

  • PTON

    0.0KRW

    41.8%

  • SEAL

    0.7KRW

    -7.6%

  • PUB

    0.2KRW

    -21.1%

  • NPER

    3.4KRW

    0.1%

  • KARMA

    0.0KRW

    1.2%

  • PUT

    1.4KRW

    -0.7%

  • CCH

    0.0KRW

    0.0%

  • KNT

    0.0KRW

    -44.1%

  • APIX

    0.6KRW

    0.1%

  • IQ

    3.4KRW

    2.0%

  • BLACK

    0.5KRW

    21.3%

  • RCD

    3.0KRW

    --%

  • MCC

    4.4KRW

    0.1%

  • INC

    0.4KRW

    43.6%

  • BZKY

    0.3KRW

    0.1%

  • CRE

    1.5KRW

    -3.0%

Community

Loopring Open Sources its zkSNARK Circuit Code

Loopring | 10.30| 65

Loopring has just open-sourced the circuit repository for protocol 3.0: protocol3-circuits. The repository contains the following circuits:

  1. Deposit, for handling (on-chain) deposit requests (including account creation and public key reset);
  2. Transfer, for handling internal transfer requests;
  3. Off-chain Withdrawal, for handling off-chain withdrawal requests;
  4. On-chain Withdrawal, for handling on-chain withdrawal requests;
  5. Order Cancellation, for handling off-chain order cancellation requests;
  6. Ring Settlement, for handling DEX operator’s off-chain, batched settlement requests.

protocol3-circuits and protocols constitute the complete Loopring 3.0 protocol. We believe these circuits are ready for deployment, although our engineers are still trying to optimize the code. The circuits are currently being audited by SECBIT.

We are extremely excited, as this is one of the final significant steps before Loopring 3.0 is ready for the world.

Why there are 6 circuits

On Ethereum, the more complex a smart contract is, the more gas it costs to execute its functionality. A similar thing is true for circuits: the more complex a circuit is (measured in the number of constraints, where a constraint is an equality check in the form of A x B = C, a circuit is just a long list of equations of this type) the more expensive the proof generation is. This complexity also limits the scalability because there is a limit on how many constraints we can efficiently generate proofs for. So it is very important that the complexity of circuits is kept as low as possible. This is one of the reasons we have a specific circuit for each DEX function.

What this means for the layperson

These circuits are largely what gives Loopring 3.0 its ‘superpowers’, allowing us to scale from 2–3 trades per second, to 1400 trades per second — without sacrificing security. This unwillingness to sacrifice security is really the most salient point; if we weren’t so stubborn on maintaining Ethereum level security guarantees, this would all be a lot easier. But of course, that is our raison d’être: scalable, secure, non-custodial orderbook exchanges. And that’s where these circuits come in: proving with 100% certainty that what a user thinks will happen, and what a DEX says will happen, will happen. And that’s why it’s important that we open source them.

These zkSNARK circuits allow for verifiable computation off-chain— ensuring protocol rules are respected (ex: users did indeed authorize this trade, by virtue of this signature, and the price is respected, and no extra fees are being siphoned, etc.). The result of the circuit is a zkSNARK proof that says as much: that all computation was done faithfully. This validity proof is then submitted (by a DEX operator) to the Loopring protocol smart contracts on Ethereum, which simply says, “yes, this proof is verified”… a new state is sealed.

Acknowledgment

The development of the circuits would not have been possible without standing on the shoulders of giants. We specifically thank HarryR (EthSnarks) and barryWhiteHat for bringing zkSNARKs to Ethereum and so much more. Their work is the foundation of our circuit code base. We’d also like to thank SCIPR Lab for their libsnark.

Bounty

We have set up a 500K LRC bounty program to reward those who identify bugs in our circuits. For more details, follow the link below:

https://github.com/Loopring/protocol3-circuits/issues/26

Loopring is a protocol for building high-performance, non-custodial, orderbook-based exchanges on Ethereum. You can sign up for our Bi-Weekly Update, learn more at Loopring.org, or check out:

TwitterRedditTelegramGitHubDiscord ⭑ YouTube


Loopring Open Sources its zkSNARK Circuit Code was originally published in Loopring Protocol on Medium, where people are continuing the conversation by highlighting and responding to this story.

Comment 0

delete

Are you sure you want to delete this post?