h (@0xhackworth) header
h (@0xhackworth) profile picture

in the arena trying stuff

Joined December 2020
Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)Photo by h (@0xhackworth)
"The highest point at which human life and art meet is in the ordinary. To look down on the ordinary is to despise what you can't have. Show me a man who fears being ordinary, and I'll show you a man who is not yet a man." - Mishima
"I do not, fortunately, have the bourgeois habit of passively enjoying beauty as a kind of nourishment for the mind. Bourgeois types like to follow a typically mammalian procedure in everything: ingestion, mastication, digestion, elimination." Mishima Yukio
36
4
327
13,635
History in the making?
10
8
3
168
10,608
STRC is down 15% in two weeks. Saylor said he "designed it with ChatGPT."
491
287
572
2,661
2,708,042
Gamified social privacy? Discussed @anoncast_, shared social and tokenized privacy games and the history behind $ANON on the ZK Idea Maze with @_avichalp_ Link below 🫳
1
2
1
10
1,161
We made FRI-Binius proofs smaller and faster, again! Last week we published an update to the FRI-Binius paper that improves our ring-switching technique for small-field polynomial commitments. eprint.iacr.org/2024/504 👇
1
22
2
90
9,245
super underrated tech: MFKDF (multi-factor key derivation function) mfkdf.com/ allows you to combine multiple factors (password, yubikey, OTPs, email, etc.) to generate a secure master password. great for encrypted backups!
1
1
46
2,718
Most of cryptography research is developing a really nice mental model for what’s possible and impossible in the field, so you can avoid wasting time on dead ends. But every now and then someone kicks down a door and blows up that intuition, which is the best kind of result.
4
60
8
387
32,684
How + why we rewrote Circom in Rust 🦀 Jolt uses R1CS to constrain a subset of the VM's functionality to ensure that the virtual CPU's fetch-decode-execute loop is constrained to the RISC-V spec. For example, we must ensure the 32-bit ELF row decodes correctly. Each 32-bit RV32I R-type instruction decodes to a tuple (rd, opcode, rs1, rs2). Jolt uses the unpacked versions of each of these in other constraints, so we'll need to constrain instruction = rd || opcode || rs1 || rs2 In total we have around 30 individual constraints of similar format. Constraints are expressed as a combination of degree-1 polynomials Az * Bz - Cz = 0. For example we might want to express that 4 8-bit field elements [Q_0, Q_1, Q_2, Q_3] pack into a 32-bit field element R, based on a condition S. In other words: if (S) R == Q_0 || Q_1 || Q_2 || Q_3 In R1CS format: Az = S Bz = Q_0 + 2^8 * Q_1 + 2^16 * Q_2 + 2^24 * Q_3 Cz = R Our full constraint: S * (Q_0 + 2^8 * Q_1 + 2^16 * Q_2 + 2^24 * Q_3 ) - R == 0 If S is one, R must be Q_0 || Q_1 || Q_2 || Q_3. We describe this state as the circuit being "satisfied". Back to Jolt. Jolt is a multilinear SNARK so we'll need a multilinear prover. We started with Srinath Setty's Spartan as it was the fastest implemented multilinear SNARK. We started by using Circom to express all of the constraints described above. But it was too slow! Jolt has 30 constraints per cycle of the CPU. At 2^24 steps the total number of constraints blows up to 2^29. The A, B, C matrices have dimensions: - COLS = NUM_CYCLES * NUM_INPUTS - ROWS = NUM_CYCLES * NUM_CONSTRAINTS So the prover costs are increasing as a square of NUM_CYCLES... alarming. @moodlezoup likes to say the only real optimization tool is taking advantage of repeated structure. Here we have 2^24 repeats of exactly the same fairly small computation. But we were outsourcing the load to Circom's libraries and improperly amortizing costs across these repeated cycles. To take full advantage of the structure, we knew we'd have to vertically integrate Circom. Circom fundamentally performs two discrete functions for us: 1. DSL for describing linear combinations over the input variables 2. Computation of the witness z Simple Symbolic DSL For Jolt we defined a JoltIn enum of all the inputs to the circuit, then defined std::ops::{Add, Subtract, Multiply} over the enum and i64 constants. These aggregate into a LinearCombination struct which stores a vector of Term: (i64, JoltIn). - JoltIn::A + JoltIn::B -> LinearCombination = [(1, JoltIn::A), (1, JoltIn::B)] - 12i64 * JoltIn::A -> LinearCombination = [(12, JoltIn::A)] - 10i64 * LinearCombination - 12 -> LinearCombination = [(120, JoltIn::A), (-12, JoltIn::Constant)] You can view this arithmetic as symbolic arithmetic in the variables JoltIn. Now we can define constraints in natural language. let packed == JoltIn::Q_0 + 2^8 * JoltIn::Q_1 + 2^16 * JoltIn::Q_2 + 2^24 + JoltIn::Q_3; cs.constrain_eq(packed, JoltIn::R); Witness Computation We can now compute the witness vector 'z' directly, using the relevant linear combinations. let lc = vec![(120, JoltIn::A), (-12, JoltIn::Constant)]; let z_i = 120*JoltIn::A - 12; By vertically integrating all of this logic we were able to take full advantage of the structure, accelerating key bottlenecks and increasing the readability of our constraint system (~100 LOC).
5
13
2
99
8,924
LatticeFold is updated: eprint.iacr.org/2024/257.pdf We add an optimized folding scheme for CCS relation in Sect. 4.3 (thanks @srinathtv for bringing up the question of batching sumchecks). We also update our knowledge proof to deal with k-to-1 lattice folding where k > 2.
1
15
1
50
3,520
PeerDAS is the direction #Ethereum is being taken into with the next forks, with the aim to raise (not immediately) the blobs up to a staggering 32MB. That's fun, but are we aware that local block production is collateral damage that the PeerDAS authors are willing to take?
27
100
40
628
104,561
just dropped an explainer article on GKR solutions.chainsafe.io/blog/… 👇🧵 (a thread)
1
12
1
49
5,296
My EthCC privacy panels reminded me of Zcash's legacy: *Aleo via the zexe paper with me+@matthew_d_green *Aztec via @rel_zeta_tech, who started at Zcash, wrote Powers of Tau w/ me+@ebfull, then Plonk *Penumbra via @hdevalence who had the cosmos+zcash idea at ZFND *Nomada: ...
4
16
3
103
14,849
Replying to @ESYudkowsky
To you, it may look like AI "just happens" like a natural phenomenon you can do nothing about. So you are scared. But to us in trenches, it is something that *we* build. We have agency. That gives us a level of certainty that you don't have.
50
22
22
419
45,282
The future of drug trafficking
14
5
1
97
4,635
things like this are why I hate typescript I shouldn’t have to wrap my arguments in an object, that is a bad api block number is always a number, block tag is always a string, a good language can figure out which one I mean without this typescript bad
well that was an annoying bug 😪 don't call viem.getBlock(number) (you will always get the latest block...)
16
2
35
13,474
magnet:?xt=urn:btih:5546272da9065eddeb6fcd7ffddeef5b75be79a7&dn=mixtral-8x7b-32kseqlen&tr=udp%3A%2F%2Fopentracker.i2p.rocks%3A6969%2Fannounce&tr=http%3A%2F%https://teapawt.net/t.co/g0m9cEUz0T%3A80%2Fannounce RELEASE a6bbd9affe0c2725c1b7410d66833e24
500
1,490
961
9,694
4,638,090
can someone explain in simple terms why it’s bad to have a trade imbalance? ive never heard a compelling case
226
12
17
574
296,040
Speech by Major General Smedley Butler in 1933: War is just a racket. A racket is best described, I believe, as something that is not what it seems to the majority of people. Only a small inside group knows what it is about. It is conducted for the benefit of the very few at the expense of the masses. I believe in adequate defense at the coastline and nothing else. If a nation comes over here to fight, then we'll fight. The trouble with America is that when the dollar only earns 6 percent over here, then it gets restless and goes overseas to get 100 percent. Then the flag follows the dollar and the soldiers follow the flag. I wouldn't go to war again as I have done to protect some lousy investment of the bankers. There are only two things we should fight for. One is the defense of our homes and the other is the Bill of Rights. War for any other reason is simply a racket. There isn't a trick in the racketeering bag that the military gang is blind to. It has its "finger men" to point out enemies, its "muscle men" to destroy enemies, its "brain men" to plan war preparations, and a "Big Boss" Super-Nationalistic-Capitalism. It may seem odd for me, a military man to adopt such a comparison. Truthfulness compels me to. I spent thirty- three years and four months in active military service as a member of this country's most agile military force, the Marine Corps. I served in all commissioned ranks from Second Lieutenant to Major-General. And during that period, I spent most of my time being a high class muscle- man for Big Business, for Wall Street and for the Bankers. In short, I was a racketeer, a gangster for capitalism. I suspected I was just part of a racket at the time. Now I am sure of it. Like all the members of the military profession, I never had a thought of my own until I left the service. My mental faculties remained in suspended animation while I obeyed the orders of higher-ups. This is typical with everyone in the military service. I helped make Mexico, especially Tampico, safe for American oil interests in 1914. I helped make Haiti and Cuba a decent place for the National City Bank boys to collect revenues in. I helped in the raping of half a dozen Central American republics for the benefits of Wall Street. The record of racketeering is long. I helped purify Nicaragua for the international banking house of Brown Brothers in 1909-1912 (where have I heard that name before?). I brought light to the Dominican Republic for American sugar interests in 1916. In China I helped to see to it that Standard Oil went its way unmolested. During those years, I had, as the boys in the back room would say, a swell racket. Looking back on it, I feel that I could have given Al Capone a few hints. The best he could do was to operate his racket in three districts. I operated on three continents.
31
138
9
714
201,612