-
Notifications
You must be signed in to change notification settings - Fork 10
Description
Perhaps the simplest way to implement payouts is to skip lightning and go straight to on-chain. It would work like this: user locks ehash tokens to a pubkey using NUT-11. The pool treats this as a request for on-chain payouts and includes a coinbase output pointing to an address corresponding to the pubkey used in the NUT-11 token locking.
In this way users can specify a payout address in a way that is compatible with the cashu spec and easy to use.
These ehash tokens can never be unlocked, though. Because mining jobs are continuously sent out to miners and there is no way to expire those jobs. So if a user unlocked some of their ehash and traded it to another user, then one of these old mining jobs found a block, that user would effectively been able to double spend those tokens.