-
Notifications
You must be signed in to change notification settings - Fork 47
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
base: main
Are you sure you want to change the base?
NUT-06: Add "MINT_ICON_URL" Field for Mint Profile Images #130
Conversation
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:
There is also a script to generate the webp icons here: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ACK 51ca292
implemented in CDK cashubtc/cdk#282 |
To avoid making this a breaking change we should note that this is an optional field that may not be included. |
Their naming conventions prefix all fields with |
@@ -39,6 +39,7 @@ With the mint's response being of the form `GetInfoResponse`: | |||
} | |||
], | |||
"motd": "Message to display to users.", | |||
"mint_icon_url": "https://mint.host/icon.jpg", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"mint_icon_url": "https://mint.host/icon.jpg", | |
"icon_url": "https://mint.host/icon.jpg", |
@@ -88,6 +89,7 @@ With the mint's response being of the form `GetInfoResponse`: | |||
- `description_long` is a long description that can be shown in an additional field. | |||
- `contact` is an array of contact objects to reach the mint operator. A contact object consists of two fields. The `method` field denotes the contact method (like "email"), the `info` field denotes the identifier (like "[email protected]"). | |||
- `modt` is the message of the day that the wallet must display to the user. It should only be used to display important announcements to users, such as scheduled maintenances. | |||
- `mint_icon_url` is the URL pointing to an image to be used as an icon for the mint. Recommended to be squared in shape. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `mint_icon_url` is the URL pointing to an image to be used as an icon for the mint. Recommended to be squared in shape. | |
- (optional) `icon_url` is the URL pointing to an image to be used as an icon for the mint. Recommended to be squared in shape. |
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 proposemint_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.