Be a crypto hero in the market by logging in

Don't you have an account? Sign in

Token price

  • BTC

    8,458,266.3KRW

    1.5%

  • ETH

    179,778.3KRW

    2.9%

  • XRP

    224.3KRW

    1.0%

  • USDT

    1,240.2KRW

    0.0%

  • BCH

    294,801.5KRW

    1.4%

  • BSV

    221,140.1KRW

    1.1%

  • LTC

    54,759.1KRW

    -0.5%

  • EOS

    2,921.9KRW

    1.7%

  • BNB

    17,209.6KRW

    4.2%

  • XTZ

    2,096.9KRW

    1.2%

  • XMR

    66,622.8KRW

    2.1%

  • XLM

    51.8KRW

    1.3%

  • HT

    4,612.2KRW

    5.2%

  • ADA

    40.1KRW

    0.5%

  • TRX

    14.8KRW

    0.7%

  • USDC

    1,237.5KRW

    -0.1%

  • CRO

    60.0KRW

    1.9%

  • DASH

    84,632.5KRW

    0.9%

  • ETC

    6,389.7KRW

    1.5%

  • NEO

    8,881.5KRW

    2.8%

  • HEDG

    2,160.7KRW

    1.8%

  • ATOM

    2,533.4KRW

    3.2%

  • XEM

    47.5KRW

    2.1%

  • MKR

    405,140.6KRW

    9.2%

  • ZEC

    41,308.8KRW

    2.8%

  • ONT

    486.0KRW

    3.2%

  • PAX

    1,237.4KRW

    -0.1%

  • DOGE

    2.3KRW

    1.4%

  • BAT

    184.2KRW

    2.8%

  • ELAC

    403.0KRW

    1.2%

  • VET

    4.0KRW

    0.8%

  • LINK

    485.1KRW

    2.0%

  • TUSD

    1,235.6KRW

    -0.0%

  • HBAR

    41.4KRW

    -0.0%

  • BTG

    9,088.9KRW

    -0.3%

  • DCR

    14,752.2KRW

    2.4%

  • ICX

    295.4KRW

    0.0%

  • QTUM

    1,595.2KRW

    2.3%

  • ALGO

    225.4KRW

    14.0%

  • LSK

    1,212.0KRW

    0.6%

  • INB

    392.0KRW

    1.0%

  • REP

    12,222.9KRW

    1.4%

  • ZRX

    194.0KRW

    1.0%

  • WAVES

    1,183.1KRW

    0.1%

  • CNX

    2,122.4KRW

    1.7%

  • BCD

    608.5KRW

    2.0%

  • RVN

    19.3KRW

    1.1%

  • XIN

    204,714.4KRW

    -1.0%

  • XIN

    204,714.4KRW

    -1.0%

  • NANO

    753.9KRW

    10.4%

  • ENJ

    121.6KRW

    8.9%

  • MONA

    1,500.4KRW

    0.8%

  • MCO

    6,224.2KRW

    2.0%

  • KCS

    1,177.8KRW

    1.8%

  • OMG

    687.1KRW

    1.4%

  • DGB

    6.8KRW

    3.6%

  • THETA

    100.6KRW

    7.2%

  • STEEM

    221.6KRW

    -5.3%

  • NEXO

    140.0KRW

    2.5%

  • QNT

    6,066.9KRW

    -4.8%

  • SC

    1.7KRW

    5.7%

  • BTM

    71.9KRW

    2.1%

  • BTM

    71.9KRW

    2.1%

  • SNT

    20.5KRW

    -5.1%

  • ABBC

    119.6KRW

    1.8%

  • VSYS

    33.7KRW

    13.7%

  • KMD

    510.3KRW

    -13.2%

  • BTS

    21.9KRW

    3.7%

  • SXP

    941.4KRW

    -4.2%

  • HC

    1,253.5KRW

    1.8%

  • BCN

    0.3KRW

    12.8%

  • XVG

    3.2KRW

    1.5%

  • ZIL

    5.1KRW

    3.2%

  • INS

    1,232.6KRW

    2.4%

  • IOST

    4.0KRW

    1.9%

  • ELF

    83.3KRW

    5.7%

  • GNT

    44.1KRW

    0.4%

  • ARDR

    41.0KRW

    1.5%

  • WAX

    36.5KRW

    -0.4%

  • MATIC

    14.4KRW

    1.3%

  • XZC

    3,966.8KRW

    2.4%

  • CHZ

    8.5KRW

    2.6%

  • AE

    125.9KRW

    2.2%

  • RIF

    63.0KRW

    3.2%

  • LRC

    34.8KRW

    0.4%

  • STRAT

    346.7KRW

    -0.1%

  • MANA

    32.5KRW

    1.1%

  • NPXS

    0.1KRW

    2.9%

  • AION

    80.0KRW

    0.2%

  • ANT

    924.0KRW

    -2.4%

  • POWR

    69.5KRW

    -0.2%

  • MAID

    64.0KRW

    0.6%

  • TRUE

    345.6KRW

    1.6%

  • ELA

    1,468.8KRW

    5.8%

  • CTXC

    105.7KRW

    -9.9%

  • ETN

    2.6KRW

    -1.0%

  • ORBS

    12.2KRW

    1.0%

  • RDD

    0.8KRW

    8.0%

  • ARK

    199.2KRW

    0.8%

  • PAI

    16.2KRW

    1.7%

  • PAI

    16.2KRW

    1.7%

  • OCEAN

    67.1KRW

    14.9%

  • GRIN

    606.6KRW

    4.4%

  • TOMO

    328.5KRW

    0.7%

  • WTC

    293.6KRW

    3.9%

  • WAN

    164.8KRW

    0.4%

  • BORA

    30.2KRW

    7.9%

  • BEAM

    334.7KRW

    3.2%

  • FCT

    2,170.5KRW

    -2.1%

  • NAS

    342.7KRW

    4.4%

  • DAI

    1,256.3KRW

    1.3%

  • LOOM

    18.2KRW

    0.9%

  • PIVX

    305.4KRW

    -1.1%

  • CVC

    24.8KRW

    3.8%

  • QASH

    46.8KRW

    2.9%

  • IGNIS

    21.0KRW

    -0.9%

  • BNT

    229.5KRW

    1.3%

  • GRS

    199.2KRW

    -0.3%

  • PPT

    277.5KRW

    2.0%

  • DAD

    223.7KRW

    2.7%

  • FET

    18.4KRW

    2.0%

  • LAMB

    19.0KRW

    21.7%

  • NXS

    188.6KRW

    2.4%

  • POLY

    24.3KRW

    2.1%

  • MOAC

    190.4KRW

    -0.3%

  • DENT

    0.1KRW

    0.5%

  • TTC

    25.3KRW

    -0.9%

  • AOA

    1.6KRW

    0.7%

  • ODE

    45.4KRW

    1.6%

  • ABT

    99.8KRW

    7.1%

  • MBL

    1.7KRW

    2.3%

  • GO

    9.5KRW

    5.7%

  • CET

    11.6KRW

    0.6%

  • SYM

    124.2KRW

    3.1%

  • GTO

    11.9KRW

    0.8%

  • CPT

    2.4KRW

    --%

  • CELR

    2.0KRW

    -0.4%

  • REPO

    67.5KRW

    41.1%

  • COSM

    10.9KRW

    0.5%

  • ANKR

    1.8KRW

    2.1%

  • FTM

    4.0KRW

    1.2%

  • GUSD

    1,246.0KRW

    1.1%

  • AERGO

    26.5KRW

    3.8%

  • MOC

    18.6KRW

    0.9%

  • NAV

    97.5KRW

    0.0%

  • R

    13.1KRW

    0.0%

  • FLETA

    6.8KRW

    2.2%

  • SOC

    3.8KRW

    4.7%

  • UPP

    16.0KRW

    1.2%

  • PAY

    37.8KRW

    6.5%

  • BCV

    5.1KRW

    2.9%

  • TROY

    2.4KRW

    1.2%

  • AMO

    0.3KRW

    0.6%

  • MIX

    2.0KRW

    0.7%

  • APIX

    0.6KRW

    2.4%

  • FNB

    1.6KRW

    2.4%

  • RFR

    0.7KRW

    -0.7%

  • PROM

    604.9KRW

    0.8%

  • BAAS

    0.6KRW

    -7.5%

  • HUM

    6.2KRW

    6.8%

  • DCC

    0.9KRW

    --%

  • PRO

    54.1KRW

    3.7%

  • EOSC

    2.5KRW

    7.8%

  • MVL

    0.3KRW

    0.2%

  • eDEL

    2.4KRW

    -0.7%

  • RBG

    0.7KRW

    1.4%

  • ABL

    8.1KRW

    3.4%

  • VRA

    0.5KRW

    5.8%

  • BWX

    46.3KRW

    -7.0%

  • AKRO

    1.7KRW

    31.8%

  • EGG

    4.4KRW

    5.9%

  • AIDUS

    3.9KRW

    -6.5%

  • XST

    44.3KRW

    -0.5%

  • LYM

    1.7KRW

    7.2%

  • RBTC

    8,333,903.1KRW

    1.6%

  • KARMA

    0.2KRW

    25.5%

  • CLB

    1.9KRW

    0.5%

  • NGC

    13.7KRW

    11.0%

  • PXL

    26.3KRW

    -0.0%

  • PTON

    0.1KRW

    -2.3%

  • UBEX

    0.3KRW

    0.5%

  • LKY

    17.9KRW

    --%

  • YEED

    0.2KRW

    3.5%

  • ISR

    4.1KRW

    10.9%

  • CLR

    5.5KRW

    5.8%

  • TEMCO

    0.2KRW

    -2.5%

  • WET

    4.3KRW

    0.6%

  • AMON

    0.9KRW

    -0.9%

  • MEETONE

    0.3KRW

    2.3%

  • FREE

    0.0KRW

    4.5%

  • ZPR

    0.4KRW

    22.7%

  • XRA

    5.6KRW

    --%

  • ADT

    0.7KRW

    -85.3%

  • QDAO

    6,347.2KRW

    1.6%

  • BBC

    0.9KRW

    16.7%

  • NEWS

    1.5KRW

    17.0%

  • WIKEN

    0.9KRW

    -8.8%

  • NPER

    3.6KRW

    --%

  • IQ

    49.0KRW

    5.7%

  • HORUS

    0.2KRW

    -37.5%

  • PUB

    0.1KRW

    -24.8%

  • SEAL

    0.2KRW

    --%

  • VANTA

    0.1KRW

    5.3%

  • STAR

    0.5KRW

    -11.3%

  • PUT

    2.0KRW

    4.6%

  • CCH

    0.0KRW

    --%

  • KNT

    0.0KRW

    -8.0%

  • DRM

    8.9KRW

    100.4%

  • UOS

    1.1KRW

    62.8%

  • BLACK

    0.3KRW

    0.9%

  • RCD

    3.0KRW

    --%

  • MCC

    3.6KRW

    --%

  • INC

    0.1KRW

    -14.8%

  • BZKY

    0.0KRW

    --%

  • CRE

    0.8KRW

    6.9%

Community

Loopring Open Sources its zkSNARK Circuit Code

Loopring | 10.30| 119

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?