-
Notifications
You must be signed in to change notification settings - Fork 324
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
CIP-0020: Transaction messages/comments metadata #100
Conversation
This seems conceptually similar to #44 so there may be ideas in the discussion of that CIP you're interested in |
thx, i checked #44 but thats a really specific CIP for the SPO to delegator communication. the #100 is from wallet owner to wallet owner as part of the actual transaction detail. like when you pay a bill you wanna attach the invoice number for example. i think we have room for some specific labels here, i don't think that we have to make all "messaging/description" related schemes into one label here. the #100 was created as a fast simple solution without much "overhead" in the keys of the json to keep the fees as low as possible. |
Implementation-Update: The CardanoCommunityWallet https://ccwallet.io now also implemented the transaction metadata/comment CIP0020 into the wallet. |
Implementation-Update: https://cardanoscan.io now also implemented the transaction metadata/comment CIP0020 🥰 |
Implementation-Update: https://adastat.net now also implemented the transaction metadata/comment CIP0020 🥰 |
Implementation-Update: CardanoWall https://cardanowall.com now also implemented the transaction metadata/comment CIP0020. |
This opens a new and pretty dangerous phishing vector, as it allows scammers messaging wallet end users directly and presenting them phishing information without a way to filter it out. I think the final wallet implementation should be carefully considered (how are the wallets going to display the link? is there even a way to shield domain names?). Are there any thoughts on how to deal with these threats? |
What link? Metadata is already displayed in Daedalus for example and in the Explorer. I think it would be a good thing to hide it behind a "show unmoderated note" button like already implemented in the Explorer. The message is currently just plain-text, not a clickable link. As with everything, there is room for abuse yes, auto-deleting/hiding urls would be possible i think. |
Thx for the reply, i added in these thoughts in the draft. Autodeleting/Autohiding URLs is a possible solution for such comments i guess. Or limiting it to a selected range of chars for the beginning. The messaging could be improved over time when identity is working and fully in place for transactions too. |
Yes, I think especially wallet interfaces needs to be very careful about this - the link even if it is not clickable will result in some number of people scammed, just by sending malicious instructions to non-technical end users. How is the messaging solved in solutions like Atala Prism that includes identity as well? |
Some positive signals from the Daedalus Wallet side about an implementation: input-output-hk/daedalus#2613 (comment) Also from the Adalite Wallet Team: vacuumlabs/adalite#1059 (comment) |
PR100 is set as a REVIEW item for next week, 8/3 Editor meeting 27: if the issue is of relevance to you, consider attending the meeting or adding to the conversation here. |
Thx! |
Implementation-Update: https://ccwallet.io supports it now on the sending-page via an input field (one liner for sending, max. 64char length), and also on the transactions-page for the incoming and outgoing transactions (including multiline support): |
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.
Technically speaking nothing wrong with this specification and it's implemented in places so I see no reason not to merge it
@KtorZ review/approval request |
This PR was REVIEWED last week's Editor meeting (27)- see notes. |
StakePool Operator Tools Integration Example: It works on the commandline like any other script of the collection by just adding the "msg: ..." parameter to a transaction. This automatically generates the needed metadata.json structure and attaches it to the transaction itself. (https://github.com/gitmachtl/scripts) |
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.
Looks fine. I'd perhaps like to see a note about what implementors should do when receiving an ill-formed 674 metadata. For example, one that does not contain a "msg" key or, contains more than one key, or contains something else than a list of strings. I'd argue that in such case, the client application should ignore the metadata, or perhaps present it as "invalid" without displaying it.
My view on it is as follows. The message should be considered valid if the following apply:
If any of the above is not met, ignore the metadata as a transaction message. Can still be displayed as general metadata to the transaction. Optional to consider for the implementer:
|
added some notes on how to handle ill-formed 674 metadata
I agree here, have already added some notes to the draft itself and also added your comments too. |
What is the point of having a separate CIP for this? Should not this be just an entry in CIP10? Thank you. |
The update of the CIP0010 registry.json is only a side commit. You should take a look at https://github.com/cardano-foundation/CIPs/blob/80fd709163481528b1cbf22193a18afb179ee9bc/CIP-0020/CIP-0020.md The entries in CIP0010 are only the label reservations, but no format/usage specification. |
Indeed @gitmachtl. I feel like we might need to update CIP-0010 to clarify this. We do expect people to open a CIP for a new entry in CIP-0010 to explain the purpose of that new entry. Even if short, a dedicated CIP is always useful. |
No description provided.