0002 XLS-2d Standard for XRPL destination information #27
Replies: 15 comments 1 reply
-
Do we need to add |
Beta Was this translation helpful? Give feedback.
-
@N3TC4T I'd say a ¤cy= field, indeed, with: |
Beta Was this translation helpful? Give feedback.
-
To be backward compatible with simple QR implementations that put just the "to" address into a QR code and nothing else we should allow the first parameter to optionally be missing a key. We should come up with a reference implementation of a URI parser and a test set of URIs to go with it. Since I'm updating this part of Toast right now I'll post a draft of this shortly |
Beta Was this translation helpful? Give feedback.
-
Thoughts appreciated on the code above as draft reference implementation |
Beta Was this translation helpful? Give feedback.
-
Code is here https://github.com/xrp-community/standards-drafts/blob/master/xls-2d/xls-2d-reference.js |
Beta Was this translation helpful? Give feedback.
-
I added this into Toast 2.5.8 with one exception: URIs starting with xrpl:// don't require the |
Beta Was this translation helpful? Give feedback.
-
Hi! |
Beta Was this translation helpful? Give feedback.
-
+1 for the memos, there is real value in this field if supported correctly. |
Beta Was this translation helpful? Give feedback.
-
Please also see #6 which has some overlap with this PR. |
Beta Was this translation helpful? Give feedback.
-
Modified the above to support ripple:rAddress legacy uris |
Beta Was this translation helpful? Give feedback.
-
XLS-2d is now a legacy standard for parsing old addresses and uris. New implementations should use XLS-5d. https://github.com/XRPLF/XRPL-Standards/tree/master/XLS-0005-tagged-addresses#readme XLS-2d code updates will be here https://github.com/xrp-community/standards-drafts/tree/master/xls-2d |
Beta Was this translation helpful? Give feedback.
-
Note: embedded in |
Beta Was this translation helpful? Give feedback.
-
For an easier integration and broader acceptance we should try to align with BIP-0021 (Bitcoin) and EIP-681 (Ethereum). Further for accounting systems, we should implement a creditor reference (ISO 11649). An issuer of a bill can append a creditor reference which (when used in payment) allows to match issued bill with received payment. Syntax propose xrpl: network, static xrpl Examples Send 0.1234 XRP to rdcFHYneRoYFie7vpRR2TFYCHdokkQCoL (Bitstamp) with tag 112233 Send 0.1234 XRP to rdcFHYneRoYFie7vpRR2TFYCHdokkQCoL using creditor reference Send 0.1234 XRP to rdcFHYneRoYFie7vpRR2TFYCHdokkQCoL using creditor reference and message Send 10.1234 USD to rdcFHYneRoYFie7vpRR2TFYCHdokkQCoL |
Beta Was this translation helpful? Give feedback.
-
Here's the parser supporting even more formats found 'in the wild' in XUMM: Test cases for: Like @rsteimen I feel that it makes sense to define a standard once and for all, eg. URI format, but I strongly prefer to keep that as close to the common used formats as possible, to prevent this from happening. |
Beta Was this translation helpful? Give feedback.
-
Thanks for clarification @WietseWind. I misinterpreted InvoiceID. The posted documentation already allows creditor references (ISO 11649) in InvoiceID. All my shown examples are already represented in xls-2d-reference.js. I also agree with @wiese we should prevent creating "just another one". I like the idea that all values are represented as querystring parameters. It allows flexibility in different usecases. For currencies I like @N3TC4T proposal. It ensures both issuer and currency are defined. |
Beta Was this translation helpful? Give feedback.
-
Currently several apps are using a variety of methods to encode destination information;
I feel the best way to implement this, is by allowing Apps to register Deep Links (URI handlers) while keeping the destinations backwards compatible with Web browsers, so users without any app to handle a URI can display a page by the app creator with an instruction.
I propose to allow any URL prefix, with a default set of GET URL params, supporting the existing params proposed in the (deprecated) Ripple URI standard;
so:
{ any URL } ? { params }
Where params may all be optional except for the account address:
to
(account address, rXXXX..)dt
(destination tag, uint32)amount
(float, default currency: XRP (1000000 drops))So App 1 may use:
https://someapp.com/sendXrp?to=...
... While App 2 uses:
https://anotherapp.net/deposit-xrp?to=...&dt=1234&amount=10
Beta Was this translation helpful? Give feedback.
All reactions