waxwing's avatar
waxwing
npub1vadc...nuu7
Bitcoin, cryptography, Joinmarket etc.
waxwing's avatar
waxwing yesterday
Thoughts on Praxis (One of the authors, David Tse, also wrote BABE). It's the natural extension of the same goal as BABE, but with different crypto. That's not to underplay it: it's a truly groundbreaking result assuming nothing is fundamentally wrong. This is *general* witness encryption at a ciphertext size of 8GB, cf OOM 100TB (maybe a lot less? they're working on it) that the alloc-init team proposed in PIPEsv2 (btw that paper was posted around the same time as BABE). Remember: BABE was proposed to do one specific thing: allow a party to unlock a utxo and claim its bitcoin if they had a valid ZKP. That's an extraordinary thing to be able to do, but it's still limited to just "claim this one utxo" because bitcoin does not have covenants, you can either spend or you cannot. With BABE, the nice part was that what the decryptor has to store is just 240MB-ish (it's actually 22MB per garbled circuit but you need a bunch of them for reasons I won't go into). One can't argue whether that's practical, it clearly is. 8GB is more arguable; depends how you're using it. But the bad part of BABE was that it required a setup between the "encrypting party" and the future decrypting party - the one that at some point in the future will have a ZKP that authorizes them to take the coins. So it didn't have that very nice property a lot of people were looking for : any party can take the coins if they present authorization, not only someone defined in advance. Praxis takes away that last restriction; *anyone* can take the coins, if they have a valid ZKP. But it doesn't do two other crucial things: 1 - you still need to define the set of entities that can make a withdrawal at the time of setup (the time you deposit the coin). this is a huge restriction, but IMO it's necessary if you want the rules to be coherent. To explain: suppose Alice is the one depositing the coin and setting up the witness encryption. Then she knows the secret, that anyone else needs a ZKP to get. That means, if the utxo is unlocked *only* by that secret, she can take it any time, *without* a valid witness (without the right to withdraw according to the rules). The only way to prevent that is to define the set of withdrawing parties at the start, and lock to their keys. 2 - the fact that bitcoin doesn't have covenants means this is a pure 'take the whole utxo, or take nothing' situation, if done in 'raw' form. Encryptor pays to a utxo locked by a secret. With covenant emulation though, which can be a signing committee and a 1 of n honesty assumption, you can set up a pre-signed transaction tree to extract a portion of the amount, with bit decomposition, as we do in Lichen. 1 of n signing committees have not proven to be that easy to set up in real life, but there's no doubt it's a possible way for things to work. Lichen addresses these problems by making everything a bilateral contract. Presigning is intrinsic, the payout counterparty is defined upfront. Swapping out BABE for Praxis looks possible but currently not practical at 8GB per user ciphertext vs 240MB total in BABE (if it was like 10x smaller it'd probably be the better option, as it takes out a lot of setup and interaction, the encryptor just literally gives the file to the future prover and that's it).
waxwing's avatar
waxwing 2 days ago
The Riemann hypothesis proof hypothesis.
waxwing's avatar
waxwing 3 days ago
Cashu NUT-12 does not use strong Fiat-Shamir. That seems unwise.
waxwing's avatar
waxwing 1 week ago
I've probably asked this before but is there an easy way to post blogs via nostr? I'm happy to pay someone else to do the hosting of the content for me, but my actual publication is via nostr notes. I'm sure it *has* existed, but is there something functional rn?
waxwing's avatar
waxwing 2 weeks ago
several interesting things! one is @m0wer 's repo: - this came out of a long chat we had about 'can you pay someone a bounty if they successfully deanonymised a coinjoin (graph)?" and have it actually be a fair bet? using cryptography, we think yes! take a look. a second thing is i wrote an article that bitcoin++ are apparently about to publish, i will post it here when they do. a third thing is, again in collaboration with @m0wer , he was enthused by lichen to actually try to make an ecash server work with it, so my earlier quip "an ecash mint that can't rug you" could be becoming a reality! (watch this space).
waxwing's avatar
waxwing 2 weeks ago
Here's my address if you want to test sending somewhere: 8a8a116a8987ccd2e584b16c60a71df087c2eea4cafbcb98673d1e060ecc8b7d View quoted note →
waxwing's avatar
waxwing 3 weeks ago
Thanks to Daniela Brozzoni (and bitcoin red team) for a scan that picked up several bugs in the old joinmarket-clientserver repo, one in particular that was an especially big deal - a direct funds loss of a sender in the old payjoin implementation (bip78). Thank god very few if any people really used that but we did include it directly in the client software, so I'm sure at least a few tried it here and there (with btcpayserver e.g.). I've now changed the repo from "archived; don't recommend you use this" to "archived and DO NOT USE THIS and BIG SCARY WARNING about funds loss" and repeated the warning on every release page just in case. Worth mentioning that both I and, to a larger extent, @m0wer , did a fair bit of scanning of the joinmarket repos looking for bugs a few months back; we found quite a few but nothing with direct funds loss like that one ^ . So this was extremely valuable extra scanning. I recommend joinmarket-ng if you want to do joinmarket coinjoins, but bear in mind, I do not work on Joinmarket any more. The general meta comment is of course that "don't use unmaintained software in 2026" is good advice, because most things with any complexity are broken unless actively audited.
waxwing's avatar
waxwing 3 weeks ago
A lichen L2 hub, running on Mutinynet, open for testing: Mac or Linux. You need, on your machine, a C compiler (Mac: xcode-select --install; Debian/Ubuntu: build-essential) and Rust (rustup.rs). About 1 GB of disk and a few minutes to build: git clone https://github.com/AdamISZ/lichen-gui cd lichen-gui ./build.sh target/release/lichen-gui It opens a page in your browser. Then: To connect to my hub you need the urls for the hub and sequencer, paste them into the fields to connect: 1. hub http://193.168.140.156:18310, sequencer http://193.168.140.156:18300. Check the keys it shows: sequencer fc760de0f51debf97c3a116c19180660b21661c8ddfd5f18bcbae304a01b5ea5 hub 0d530a46a469ecaf7abe72a89cf737c88bf7dcb1ce149f86e0b8ae6186af8665 2. Open a contract (defaults: 100k deposit, 100k inbound). It shows a deposit address and amount, about 151k sats: pay it from https://faucet.mutinynet.com, in ONE payment. Opening takes a few minutes (it checks the hub's BABE setup and downloads about 240 MB). 3. Pay someone on the L2, or ask to be paid: near-instant. I'll keep an eye on replies here, if someone wants to test paying back and forth with me, send me your address here. My address is 8a8a116a8987ccd2e584b16c60a71df087c2eea4cafbcb98673d1e060ecc8b7d 4. Withdraw: about 5 minutes (it waits for an anchor on Bitcoin and its proof). Withdrawals and your reserve go to the wallet's own Bitcoin address, so you can pay your next deposit from it: the faucet is only needed once. It's an early prototype: expect rough edges, and tell me what breaks. Disputes and shielded payments aren't in the GUI yet. If you hadn't read anything I wrote here before about lichen, check out there's a paper there.
waxwing's avatar
waxwing 3 weeks ago
the binance hack will be a huge setback for those people who want to push bitcoin and cryptocurrency as "legitimate". It hands a perfect argument to those in power who hate bitcoin and want to shut it down, much more so than say FTX which was just "a bunch of people getting scammed". Now they can say (they already did, but this hack is *huge*) that we are literally funding North Korea's entire nuclear weapons program.
waxwing's avatar
waxwing 3 weeks ago
I could be wrong, but what I'm noticing about these headline-grabbing (deservedly) results from frontier models on long-held theories of computation limits is, that they are more showing that the long-held theories are approximations, not so much that they are wrong. The "Exponential Time Hypothesis" and the square-root bound for ECDLP are in this category: both the results that show they are wrong, show they are wrong to an absurdly infinitesimal extent. Maybe it's more like saying that things are fuzzier than you think, not clean, not so much saying that the general rule you have in mind is wrong. Just a guess, though.
waxwing's avatar
waxwing 3 weeks ago
How have I only today learned that the plural of lemma is lemmata.
waxwing's avatar
waxwing 0 months ago
Little update on Lichen: switching the onchain verification to BABE results in only a few onchain txs instead of 20-25 (so, a much smaller exit delay) and reduces onchain costs by about 7x in terms of bytes. Worst case attacks in terms of a mass exit can then allow scale of about 10k to 50k users with a single operator/hub. And fees kept in reserve are also far lower. Already got a long way through building this out using LLMs and there are further optimizations possible afaik such as duty free bits. Afaict the bottleneck in lichen is all with the hub(s): how much liquidity can they provide, at what price, and they need to stay fully online and available. Very easy for the user: they don't have to watch the bitcoin chain at all. It's like an LSP model, but way better imo. The synergy between BABE and lichen appears to be very strong, enough that I would claim that switching from BitVMX changes this from 'possible' to 'practical'. Still got to do a lot of security analysis, but, optimistic.
waxwing's avatar
waxwing 1 month ago
on branch `anchor` there's now a fairly complete setup: the sequencer posts anchors to bitcoin each L2 block. when you withdraw, you prove that an anchor is embedded with enough PoW and at least 10 blocks deep. You prove that your withdrawal represents a valid set of state transitions from genesis. These things together mean that even if the sequencer is colluding against you, you can't be cheated out of your money. And the transfers on L2 are all shielded (like zcash). The remaining risk is censorship: the sequencer censors your withdrawal transaction. The demo now shows the anchoring so you know how final your transaction is. https://github.com/AdamISZ/lichen/tree/anchor View quoted note →
↑