moontreeapp / moontree

Primary Mono Repo
6 stars 5 forks source link

Moontree Layer usecase: send transactions #545

Closed lastmeta closed 6 days ago

lastmeta commented 2 years ago

Describe The Suggestion

after MVP we anticipate a major move using the moontree layer. we have previously known of 3 use cases:

  1. USD price caching
  2. IPFS functionality (might be a separate server)
  3. wallet tracking and caching

we had previously thought of the third usecase as a caching ability to pull data down to the phone quickly but the phone retains all it's original functionality (ie. transactions are created locally). We now believe we'd rather move that functionality to the moontree layer itself so everything on the phone at least has the ability to be API based.

That way the moontree layer would derive the addresses (given the public key) and cache all transactions, and on demand produce unsigned transactions that would be sent to the phone for signing, then sent directly to the electrum client, most likely, for broadcast.

we'll have to discuss this in detail - for example perhaps we should send it to the moontree layer for broadcast so that layer can change its own memory, knowing the vouts are spent, etc? - but we think this is in many ways more optimal.

Additional Context

No response