Skip to content

Allow users to pay to schedule "blockstamp" via lightning #15

@gratten

Description

@gratten

The whole idea is to allow users to schedule a Bitcoin transaction (including an OP_RETURN containing their "stamp") at the date of their choosing.

In order to accomplish this, Bitcoin transaction fees must be taken into account and passed on to the user. Additionally, a service fee will be passed on to the user as well.

Ideally, I'd like to implement Lightning as a way to receive this fee from the user.

The flow would look like this:

  • user arrives at website
  • user enters a date in the future specifically (a date in the past will just return the corresponding blockheight)
  • upon submission of the future date, the user is presented with an estimated blockheight (target blockheight) and a form to enter the "stamp" they would like to add to the blockchain
  • once the user submits their "stamp", they will be given a lightning invoice
  • upon payment, the "target blockheight" and the "stamp" will be added to the database
  • the site will then be responsible for monitoring the database and building, signing and sending the Bitcoin transaction at the user-chosen "target blockheight", which will include the OP_RETURN containing the "stamp"

I don't have much experience with this, so open to suggestions.

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