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

NUT-06: Add "MINT_ICON_URL" Field for Mint Profile Images #130

Closed

Conversation

swedishfrenchpress
Copy link
Contributor

Suggestion to add a mint_icon_url field to allow mint operators to include a profile image. This feature enables applications to index and display the image, making it easier for users to identify the mint.

The Fedimint protocol provides a similar feature with the federation_icon_url. Following their naming convention, I propose mint_icon_url as the metadata field.

Below is a visual example of how an app might index and display the mint metadata fields. The profile icon can be a useful addition to the existing options.
mint-profile-example

@f321x
Copy link

f321x commented Jun 27, 2024

Maybe another feasible way to serve icons would be as base64 encoded webp ("MINT_ICON_B64"). This is the way Robosats currently implements icons in the frontend:

  paypal: {
    title: 'paypal',
    image:
      'data:image/webp;base64,UklGRpgJAABXRUJQVlA4WAoAAAAQAAAA4AAA4AAAQUxQSPMFAAABoAQAkCFJiupZ27Zt27Zt27Zt27Ztz+7ZXnvPg0bF+bIqKiK+ETEB4N7UPbaFP3zmxU8fP/z2y4/Cr585tHX5zBHdGpXNHt8CjnPtjEY+7XefnF4zqkXhBJz4RkUix4HvTsxsndPHQtgW5PztmUnV4nneQmQ/6sr4Yj4vq2bz9/cnq2vE9CrrDorx+dJi3lQQRflez/geNFgWiG9mpvaczdJA/G1RKo95Tx6IP0+I6yWxIySC+H1DDymIUt2b0jM6igWf1fKKBXLB4GSfN5wXDOKBeF5gvRQN3kzmAelt2eB7yenVRek+SEJurHjwejxqe+SDB8OIfS4gnEkrXlBCdlNSpVDE7zJR6ikjvOAjtFJI2IPQDSm9Tk4m7Ccp4WIy2VHMkRmpNJMTLqEyVVC/JiZyVFDYj8gPkrpDI3lQUqEsJCqjqAeQGCSroyQ2yup1GIUHssKcBGJFCKs5gQIo7HEE2ktrPYF50jpF4Jy07hF4Ia0v3ZcWpf3QfXXE9dR9o8X1xH27xPWt+z4V10eui+8X13XX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HoWEkg94JV+IqT/yS1DZhfn1/CfUE1eqIim9lw4nswzGMtGLSs7GBE5mZTh8XmHPlrWoYoywptmmqmtxyshCR7zvcgjC+8DTmm/touWkh9pbM5m4pjgGpgf2QNHJqnQMnutnmGGYwBRVU/GK6Deyac/qWxAKRoITfKSfKopzQqZ69IUBL+kSY0ZcwAsr1YoVoLQzeR8BjInkqPY6aGHWgGGABGYR1mDvMAVhno6Wy+typ6ZpXybntBYKTAjALWsAfeFb9nkxMjRmIegAnYNcVcBUJmU9SrKBK7arQBz0NNvIRfyQTugq8asHH+CdxbcYFhy8IVBTc4j5gw/xybR00DOFpccgck5G3ANGXhVI6YCND0/mWrJvUdvEJerlo8zFm4EKjRk1/zcSCEC/biAxONNuwXvG0ACPoF673oNEpPZoeoOdBG2yzgW14TruW5N6CAWJf0h3iH3QMD9iGi7i6byrBa6U9qSkaFebLExtbpS2xM6yMgttKtrIfIynGlYDZkGmCc8+/LaJfhoZSu3XWHs6AAAAAA==',
  },

There is also a script to generate the webp icons here:
https://github.com/RoboSats/robosats/blob/main/frontend/src/components/PaymentMethods/README.md

06.md Outdated Show resolved Hide resolved
@callebtc callebtc marked this pull request as ready for review July 26, 2024 09:58
Copy link
Collaborator

@thesimplekid thesimplekid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK 51ca292

@thesimplekid thesimplekid added the needs implementation Needs a reference implementation label Jul 26, 2024
@thesimplekid
Copy link
Collaborator

implemented in CDK cashubtc/cdk#282

@thesimplekid
Copy link
Collaborator

thesimplekid commented Aug 24, 2024

To avoid making this a breaking change we should note that this is an optional field that may not be included.

@prusnak
Copy link
Collaborator

prusnak commented Aug 25, 2024

The Fedimint protocol provides a similar feature with the federation_icon_url. Following their naming convention, I propose mint_icon_url as the metadata field.

Their naming conventions prefix all fields with federation_ while NUT-06 does not, so I think better key would be just icon_url.

@callebtc callebtc changed the title Add "MINT_ICON_URL" Field for Mint Profile Images NUT-06: Add "MINT_ICON_URL" Field for Mint Profile Images Aug 29, 2024
06.md Outdated Show resolved Hide resolved
06.md Outdated Show resolved Hide resolved
@prusnak
Copy link
Collaborator

prusnak commented Sep 2, 2024

@prusnak
Copy link
Collaborator

prusnak commented Sep 3, 2024

superseded by #160 (which also resolves conflicts after #159 has been merged)

@callebtc callebtc closed this Sep 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs implementation Needs a reference implementation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants