Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use the memo.cash protocol in replacement of cashaccount #21

Open
PiRK opened this issue Dec 2, 2020 · 1 comment
Open

use the memo.cash protocol in replacement of cashaccount #21

PiRK opened this issue Dec 2, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@PiRK
Copy link
Collaborator

PiRK commented Dec 2, 2020

Suggestion by @christroutner:

For message.fullstack.cash, I'm using the memo.cash protocol for retrieving names. It searches the tx history for an address and looks for an OP_RETURN with a 0x6d01 prefix.

https://memo.cash/protocol
No server required. Each implementation can use the same protocol without depending on any extra infrastructure.
I've got a JS library for it if anyone is interested. Though it's not well documented yet.
I've also got a REST API with a Mongo DB that catches the name data. That cuts down on redundant processing, and significantly reduces the amount of processing required on a front-end app.

All open source. Happy to give links to the code.

@PiRK PiRK added the enhancement New feature or request label Dec 2, 2020
@christroutner
Copy link

christroutner commented Dec 2, 2020

I'm in the process of implementing this at message.FullStack.cash, and PSF will be releasing a video on the PSF YouTube channel with a walk-through of how to use the web app.

But as I mentioned in the quote above:

  • bch-message-lib is a JavaScript library that is optimized for both front-end and back-end applications. It can search through an addresses transaction history and look for the 0x6d01 prefix that signals a persons name in the memo.cash protocol.

  • community-msg-api is a node.js REST API server that makes use of this library. It has a REST API endpoint that a front-end app can use to request the name belonging to an address. The server uses the bch-message-lib to find the name and caches it in a Mongo DB. This architecture is efficient and cuts down on the amount of computation required by the front-end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

No branches or pull requests

3 participants
@PiRK @christroutner and others