Announcing Zingod

Zingo Labs is now supporting the Zingod Indexer.

Thanks to @dismad for creating this benchmark utility:

https://github.com/dismad/cbb#cbb--compact-block-bench

Here’re some results:

You can try https://status.zec.global in your browser, and use zec.global in your wallet!

Via zingod Zingo Labs offers lightclient indexing that’s:

  • NU7 supporting

  • IPv6 supporting

  • highly available

  • low-latency

  • high-throughput

  • protocol compliant

  • no loadbalancer TLS termination (extending network privacy)

  • sends via randomly sampled validators

at the zec.global endpoint.

We’ve been using this endpoint, in production, backing Zingo User lightclients for several weeks.

We have not experienced any disruption as a result of NU7.

In order to expand User options we’re managing the underlying (Apachev2 licensed) software (forked from zaino) at:

We’ll open PRs to Z3 (docker compose etc.) so that Z3 operators can opt to use either zingod or zaino.

We will be actively developing, maintaining, and updating zingod.

In order to increase optionality we’ll publish containers and build artifacts through a different set of endpoints (*/zingod) and leave the */zaino[d] endpoints in place.

Note: Due to a coordination failure on my part the Z3 docker compose, and container publication end-points were not updated in time for NU7.

Note: We are no longer affiliated with the zaino project, its code in the github org will be archived.

14 Likes

Funnily, we own ofz.cash, so you can technically get indexer.ofz.cash…

2 Likes

This is awesome, great work guys!! Will zaino take a different direction then? Why fork?

Do you have benchmarks yet?

1 Like

Yeah!

We have gotten indexer sync times down to ~25 minutes for ZingoD (with nvme disk for zebra & zingod). We also removed almost all of the passthrough calls to the validator, and build a local index of all the data critical to light-client sync instead of relying on validators.

The response time and throughput of every GRPC endpoint has been improved, and some have been improved substantially!

On our zec.global endpoint, I have benchmarked synthetic wallets (linear distribution of 0-2 week resumes via k6) at 16k concurrent wallets with 0% errors on our current infra (https://status.zec.global) The call that tripped was the p99 for GetTransaction rising above 8 seconds, and that has since been optimized, so I suspect we could handle a lot more wallets!

4 Likes

Is this a ZCG Grant application or is it miscategorized in the applications section?

It’s not an application. Can we remove that label?

2 Likes

@distractedm1nd please see @dismad 's benchmarks added to the announcement post, or check out his repo:

https://github.com/dismad/cbb#cbb--compact-block-bench

Please note that these benchmarks deliberately factor out the benefits of highly available, low-latency deployments, so they don’t provide insight into all the benefits that individual wallet Users get when they use the:

zec.global

endpoint.

Nevertheless this graph is a nice snapshot of one way in which zingod is the best indexer on the market. I’m proud to be associated with the zingod project.

3 Likes

Please see: updating benchmarks by @dismad if you’re curious about other properties of zingod.

Welcome zingod! See you on Zingo Wallet. :flexed_biceps: :shield:

Hi Zingo team, congrats on zingod. Small request from Konclave. We’re benchmarking in-browser scanning for our ZCG grant (#486), and the test page talks gRPC-web to a lightwalletd endpoint. zec.global answers gRPC-web requests from curl, but a browser can’t use it: the preflight OPTIONS comes back without an Access-Control-Allow-Origin header, so the browser stops there. For now we run the gRPC-web proxy config that WebZjs ships.

Would you consider enabling CORS for gRPC-web on zec.global? That means answering the preflight, sending Access-Control-Allow-Origin, and exposing grpc-status and grpc-message. Then browser wallets could connect to zec.global directly, without a proxy. Thanks either way.

The main issue I see with this is called embed-flooding. If requests can be made to a potentially expensive endpoint (as implied via gRPC to a node) over the web, one can simply embed a JS snippet to a massively viewed webpage to do the request. Then every visitor unknowingly does the request in the background, hammering the service with millions of expensive requests from distinct IPs (and thus non rate-limitable). This same flaw existed in Valar Group’s voting service too, where ACAO was set to *, where I was able to take it down via this same exploit, as a specific endpoint reserved memory to process requests.

This could be mitigated via a per-origin rate-limit, but then why are we looking at origins in the first place? It could leak your users if the origins are logged. Speaking of, aren’t origins sent with the browser request? Is it not a privacy leak?

Remember, unlike Ethereum, which can just execute a simple signature validity check and a cheap simulation run, a Halo2 proof verification takes a (relatively) absurd amount of memory, and 1-5 ms of verification time as it does several MSMs, a process that spikes CPU core usage. This is currently mitigated via IPv4 rate limits and IPv6 /64 subnet rate limits.

Even on Ethereum, the services that do provide eth_call freely charge compute units, such as Alchemy or Infura, and use project IDs for cross-IP rate limits.

1 Like

Good point on embed-flooding, thanks. Question: once a browser wallet’s requests stop showing a usable IP (an OHTTP relay, or Tor), what would you rate-limit on? Privacy Pass style tokens, a small proof of work, something else? Happy to take it to DM if that’s easier.

That is something you should take up with Zingod, or maybe ECC as they recently implement OHTTP. Tor itself is usually a non-issue: exit node IPs are known, about 8,000, which can be given special conditions. The main issue is OHTTP, and if you’re going by Alchemy/Infura’s approach, then I’d say project IDs or API keys (here’s where your Privacy Pass concept comes in). Proof of work could be done as well, but would need to be substantial, and it still wouldn’t beat the DDoS concern as non-interactive PoW (such as Argon2id uniquely mined tokens) can be premined and then flooded at once, unless its time bound, in which case it’s a privacy risk.

Overall, not something I will solve in one post, although I will look into it later. Again, contact Zingo maintainers and the ECC! (Check: ZODL Introduces Private Wallet Servers with OHTTP Support )

1 Like

Looking into it.