> Your project swaps coinbase transactions for payment transactions, right?
Yes. The miner gives you X sats from their next coinbase if and only if you give them X+Y sats, where Y is a premium.
> The repo could need some documentation
Ok I will add more documentation, thanks!
> It's an atomic swap between a transaction that pays the miner via high mining fees and a mining reward? I pay one of my own addresses with a 1BTC mining fee and the miner pays me 1BTC from the coinbase transaction?
No, the miner gives you a pubkey and you use it to create a swap address using Gregory Maxwell's coinswap technique. The swap address – which I call Swap Address A – allows your pubkey to withdraw after a timelock, otherwise the miner's pubkey can withdraw if you give him a secret, otherwise you can cooperate to spend the money without revealing the secret. You deposit funds into this address and send some info about it to the miner.
Then the miner creates an equivalent swap address – Swap Address B – which is locked to the same secret, except everything's reversed: his pubkey can withdraw after a timelock, your pubkey can withdraw using the secret which you already know, or you can spend the funds cooperatively without revealing the secret. The miner uses Swap Address B as the destination for part of the next coinbase he mines, so now both sides have committed funds.
Then you reveal to the miner the secret that allows you to take the money in Swap Address A and him to take the money in Swap Address B. With this information in hand, the miner and you do not actually *use* the secret (because that would publicly reveal information that links the swap) but instead you cooperatively spend the money in Swap Address A to the miner and he cooperatively spends the money in Swap Address B to you. The resulting transactions look like ordinary 1-of-1 taproot transactions with no funkiness, and they reveal nothing that indicates a swap happened.