I want a Bitcoin opcode that checks, for a given hash and block height, whether an OP_RETURN containing the preimage appeared before that height.
This could be useful for Lightning-like channels buried deep inside shared UTXO structures like Ark (or LayerTree?).
Imagine a payment X → Y → Z, where both channels are inside separate Ark (or LayerTree?) trees.
Y can be confident that either the preimage appears on-chain before the deadline, or it doesn't. In either case, Y won't lose money: the payment either goes through both channels or neither.
If X or Z stops cooperating, Y doesn't need to urgently unroll an entire Ark (or LayerTree?) tree to claim an HTLC. The preimage can be published independently, and the actual channel settlement can happen much later.
We'd probably want slightly staggered deadlines, giving each intermediary time to publish the preimage after settling its outgoing payment. This should make everyone more willing to cooperate and finalize their channel updates, even as the deadlines approach.
This doesn't solve the other Lightning risk: a counterparty broadcasting an old channel state. But to do that, they'd first have to unroll the Ark (or LayerTree?) tree anyway. That gives us more time to react, and once the tree is unrolled, we'd only need to broadcast one transaction to punish the old state.
Apparently Sprites (https://arxiv.org/abs/1702.05812) proposed a related global preimage mechanism for Ethereum, though it used a single deadline. Ours would use a Bitcoin opcode and a registry of on-chain preimage revelations.
SatsAndSports
npub1zthq...xm56
Into bitcoin, specifically cashu.
When I'm not working in the fiat mines, I'm into cycling and camping
It's not really a camping holiday on a tropical island if you don't get caught in a tropical storm at least once, right?
I've been thinking about post quantum for Cashu. @Cashu There's been progress on PQ signature schemes, but *blind* signatures might be a harder problem.
Personally, I'm not worried about quantum computing. Maybe 100 years from now quantum computers still won't be able to factor a 3-digit number. But let's imagine elliptic curves are broken, whether by quantum computers or a classical attack.
Inflation rather than blindness is the problem for Cashu. An attacker could recover the mint's private keys and forge unlimited ecash. But I think the blindness of the signatures would remain intact; I don't see how solving the discrete logarithm problem would allow them to unblind
If Bitcoin hasn't adopted PQ signatures, Cashu is dead anyway. And if we have practical PQ blind signatures, we can just use those. Apparently, the lattice-based schemes might allow blind signing
So the interesting scenario is where Bitcoin has adopted PQ signatures but Cashu hasn't.
Suppose elliptic-curve private keys can be recovered within a month. Cashu could continue using elliptic curves, but keysets would have to expire after perhaps a week. Not just rotate to new active keysets: old ecash would become worthless.
Every user would have to come online weekly to refresh their entire balance, or lose it.
My prediction is that people simply wouldn't do that, and everyone would use on-chain Bitcoin, Lightning, or something else
As I said, I'm optimistic that elliptic curves will be fine for another century. If not, then chaumian ecash needs a quantum-safe blind signing scheme; there are no workarounds to keep elliptic curve blind signing in operation
de-slopifying protocol specs, not de-slopifying code

GitHub
MONAD/docs/control-protocol.md at 09d21f7e6fccac4b81219c1f67a7ae4c882f8a4d · SatsAndSports/MONAD
Monetized Onion Network Access Daemon - onion-routing, where you pay each node via Cashu spilman channels for their service - SatsAndSports/MONAD