Paul Miller avatar
Paul Miller
@paulm
Security, noble cryptography (js), austrian school of econ.
Paul Miller avatar
Things which could help against NPM supply chain attacks similar to one which happened today: - prefer specific pkg versions instead of ranges (2.0.0 not ^2.0.0) - prefer rare dep updates (once per 3mo or so) For pkg authors: - publish from github ci - do not store npm tokens on a dev machine - while publishing from...
NPM hack. A full thread. https://x.com/officer_cia/s...
5
9
54
Paul Miller avatar
Releasing noble cryptography v2. Time to make JS ecosystem safer once again. Lots of changes. Details below👇
Cast image embed
5
15
69
Paul Miller avatar
Releasing micro-zk-proofs: JS library to create and verify zk-SNARK proofs. Proofs are created in parallel using Web Workers. Noble cryptography is utilized underneath. During development of zkp, a vulnerability was found in wasmsnark, alternative proof generation library.
Cast image embed
6
14
76
Paul Miller avatar
Releasing ESPLR - a local ETH block explorer. Big problem of ecosystem is reliance on 3rd party RPCs (infura, alchemy, quicknode). Also reliance on 3rd party explorers (etherscan). They track users: it makes system one big panopticon. Local nodes can make the situation better! PC with an archive node only costs $40/...
Cast video
Cast image embed
24
70
272
Paul Miller avatar
New vulnerability in elliptic.js allows attackers to extract private keys from signatures. This happened because fully deterministic signatures are not your friends. Check out my latest blog post describing the bug and prevention methods:
Deterministic signatures are not your friends
paulmillr.com
Deterministic signatures are not your friends
2
8
40
Paul Miller avatar
Updated the 2020 article about building an elliptic curve library from scratch. We need more implementations, in different languages. It’s really easy. Check it out:
Cast image embed
Learning fast elliptic-curve cryptography
paulmillr.com
Learning fast elliptic-curve cryptography
2
16
65
Paul Miller avatar
A few updates: - Repos are now deployed to JSR.io and work in Deno / Bun. JSR auto-generates docs! - Tests run 5x faster with “micro-should” (400-line parallel ESM replacement for Jest) - A server is fuzzing noble for 8 hours every day. Code coverage stats have been added
Cast image embedCast image embed
3
5
42
Paul Miller avatar
Some thoughts on how ETH can become quantum-resistant. There are lots of small tasks, but it seems quite doable.
Tidbits of post-quantum ETH
ethresear.ch
Tidbits of post-quantum ETH
1
10
63
Paul Miller avatar
Fresh drop from australian NSA: “taking into account projected technological advances in quantum computing” - DH / ECDH / ECDSA will not be approved for use beyond 2030 - Also AES-128 and AES-192 - Also SHA-256 (!) - Also ML-KEM-768 / ML-DSA-65 (!!)
OpenGraph image
cyber.gov.au
3
8
85
Paul Miller avatar
There are challenges in upgrading blockchains to be post-quantum safe, however, some of them seem easy. Most keys these days are generated from BIP39 mnemonics. Bip39 is pq-safe. We freeze all balances. To unfreeze, we ask users to generate a STARK proof which shows seedphrase is related to their address. After that f...
6
10
67
Paul Miller avatar
NIST wants to ban ECDSA in 2035. It is tight. HTTPS, messengers, cryptocurrencies and everyone else will need to move to new algorithms. Not all functionality is currently feasible in pq setting. Here’s an excerpt from noble-post-quantum on speed & key size in JS implementations.
Cast image embed
7
12
105
Paul Miller avatar
noble-ciphers got audited, while curves got their third audit. Thanks to OpenSats for funding & Cure53 for the work! PDF in repo. Contact me if you’re: - auditor (paid / unpaid) willing to review new open-source goods - willing to fund auditors
GitHub - paulmillr/noble-ciphers: Audited & minimal JS implementation of Salsa20, ChaCha and AES
github.com
GitHub - paulmillr/noble-ciphers: Audited & minimal JS implementation of Salsa20, ChaCha and AES
1
2
23
Paul Miller avatar
Ethereum $130B staking contract was created using Tornado Cash. Torn has mostly been used for legit on-chain privacy. An example is the transaction by anon dev, deploying the contract. The repo rebuilds it using modern tech. Great for ZK education!
GitHub - nkrishang/tornado-cash-rebuilt: Tornado Cash as a foundry project, using latest versions of tools such as Circom, snarkJS, etc.
github.com
GitHub - nkrishang/tornado-cash-rebuilt: Tornado Cash as a foundry project, using latest versions of tools such as Circom, snarkJS, etc.
OpenGraph image
etherscan.io
Etherscan
5
20
Paul Miller avatar
Kinda sad there are people working on eth who think Tornado should be shut down due to crime. Even though most of its usage is legitimate privacy, which cannot be reliably achieved in other methods. Anti privacy ethos all the way.
1
6
71
Paul Miller avatar
New release of JS eth-signer is out. A lot of new features have been added: - EIP-7702 AA transactions - EIP-4844 KZG implementation in pure JS - EIP-712 / EIP-191 message signing - EIP-7495 SSZ stable container
GitHub - paulmillr/micro-eth-signer: Minimal library for Ethereum transactions, addresses and smart contracts.
github.com
GitHub - paulmillr/micro-eth-signer: Minimal library for Ethereum transactions, addresses and smart contracts.
2
11
44