Open PiRK opened 3 years ago
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.
Suggestion by @christroutner: