Skip to content

Ad-hoc star voting #22

Description

@elsirion

When looking at the published recommendation events I noticed that the star voting system of bitcoinmints.com is implemented in a very ad-hoc way. Instead of adding another optional tag to contain the star voting or making the content JSON encoded you just serialize a [x/5] prefix in front of the comment. I think it would be good to standardize some sort of voting system into NIP-87 to ensure compatibility. cc @benthecarman

Example NIP-87 event presumably created by bitcoinmints.com

  {
    "id": "f4c9a160e3cc3933e3669ea16bec3e6f3c0c699d1d1082ebf7f8052851579ace",
    "pubkey": "0ace5084321584fc67174b6ed498d2f033f4398a229e679785388bb4de5a460c",
    "created_at": 1720104015,
    "kind": 38000,
    "tags": [
      [
        "k",
        "38172"
      ],
      [
        "u",
        "https://stablenut.umint.cash",
        "cashu"
      ],
      [
        "a",
        "38172:cashu-mint-pubkey:zh5vikcpv3qiokij",
        "wss://relay.satoshidnc.com",
        "cashu"
      ],
      [
        "d",
        "zh5vikcpv3qiokij"
      ]
    ],
    "content": "[5/5] I've used this mint one time for one transaction and it functioned.  Thanks, stablenut mint!",
    "sig": "501b41f32fdb4bc3d5ed6484958f8af244df204cd53344b9c849f98cb7cc52ae4e901ac01b158fa62998dc3fc50439decd0d50b245555c0ebd7d989c586b95cd"
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions