Skip to content

investigate ehash P2PK locking as an on-chain payout mechanism #82

@vnprc

Description

@vnprc

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions