You are viewing a single comment's thread:

RE: Proposing a front-end agnostic way to store Bitcoin Lightning, crypto and social media addresses in a Hive profile

Hi

We already have this in our mobile app and website:
Here is the format example, where type define if it is external chain or 2nd layer name, etc.:

{
  "profile": {
    "name": "...",
    "about": "...",
    "version": 2,
    "tokens": [
      {
        "symbol": "BTC",
        "type": "CHAIN",
        "meta": {
          "address": "1848UG3vGSaRP94NxdYtyCMbfsSJha48BC",
          "publicKey": "03e4928405fd277ac60b08b74783dcec1aeeb9505d75031484cab97b9982507fe9",
          "show": true
        }
      },
      {
        "symbol": "ETH",
        "type": "CHAIN",
        "meta": { "address": "0x436a...3da3", "publicKey": "0x0433...f6d0", "show": true }
      },
      { "symbol": "LEO", "type": "ENGINE", "meta": { "show": true } }
    ]
  }
}

profile.tokens in posting_json_metadata is an array of {symbol, type, meta} that lists a Hive user's linked wallets. Entries with type: "CHAIN" hold the user's public receive address on another blockchain (meta.address). Show an entry only when meta.show is not false.

0.01556527 BEE
2 comments

oh cool, looks a bit complicated though, but more expandable, I was aiming for a simpler approach, just having the address association. Where do you use the tokens?

0E-8 BEE
(edited)

@vikisecrets modified this reply with more context!

In the Ecency wallet, on web and mobile:

  • Your own wallet: the list decides which tokens you see. External chain addresses (BTC, ETH, SOL and others) sit next to the Hive Engine tokens you picked and you can hide any of them without unlinking.
  • Sending to someone: when you transfer or tip, we read the recipient's profile.tokens and offer their external addresses as destinations. On the website the transfer itself goes through MetaMask; the mobile app shows the balances.

So it backs a full wallet, which is why each entry carries a type and a meta object and not only an address.

The format, a read snippet and the write rules are documented here: https://docs.ecency.com/developers/wallets/#profile-tokens-format

0E-8 BEE

Then let's take the ecency approach even though its a but complicated, ok? Then we have 3 apps following one format. I would see the social media links on the same level as tokens.

0E-8 BEE

Didn‘t know you can tip Sats via @ecency. How does that work?

0E-8 BEE

You can’t tip lightning sats, we have BTC and other chains tipping working with MetaMask extension on website. Mobile app shows your balances on those tokens, website allows you to transfer. Lightning network is not there yet. We haven’t seen much utility or usage to extend those areas…

0E-8 BEE