Update with details of new parameters

This commit is contained in:
Joshua Seigler 2020-01-21 16:59:52 -05:00 committed by GitHub
parent dbd0404dd6
commit 981041329f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -64,10 +64,12 @@ corresponding UTF-8 sequence must be percent-encoded as described in RFC 3986.
dashurn = "dash:" dashaddress [ "?" dashparams ] dashurn = "dash:" dashaddress [ "?" dashparams ]
dashaddress = *base58 dashaddress = *base58
dashparams = dashparam [ "&" dashparams ] dashparams = dashparam [ "&" dashparams ]
dashparam = [ amountparam / labelparam / messageparam / otherparam / reqparam ] dashparam = [ amountparam / labelparam / messageparam / idparam / proofparam / otherparam / reqparam ]
amountparam = "amount=" *digit [ "." *digit ] amountparam = "amount=" *digit [ "." *digit ]
labelparam = "label=" *qchar labelparam = "label=" *qchar
messageparam = "message=" *qchar messageparam = "message=" *qchar
idparam = "id=" *base58
proofparam = "proof=" *base58
otherparam = qchar *qchar [ "=" *qchar ] otherparam = qchar *qchar [ "=" *qchar ]
reqparam = "req-" qchar *qchar [ "=" *qchar ] reqparam = "req-" qchar *qchar [ "=" *qchar ]
@ -81,10 +83,12 @@ is case-sensitive, including the query parameter keys.
Query Keys Query Keys
label: Label for that address (e.g. name of receiver) label: Label for that address or DPNS name for user
address: dash address address: dash address
message: message that describes the transaction to the user (see examples below) message: message that describes the transaction to the user (see examples below)
size: amount of base dash units (see below) amount: amount of base dash units (see below)
id: platform ID used for proof
proof: value of [address] field, signed by the private key of [id]
(others): optional, for future extensions (others): optional, for future extensions
Transfer amount/size Transfer amount/size
@ -101,6 +105,10 @@ long as the majority of users work in Dash units, values should always be
displayed in Dash by default, even if mDash or something else would be a more displayed in Dash by default, even if mDash or something else would be a more
logical interpretation of the amount. logical interpretation of the amount.
Dash clients MAY display the profile of a user indicated by the label field, if
the ID and proof are validated by DAPI. If the ID and proof do not match the
label, clients SHOULD indicate the mismatch in some way, e.g. with a warning.
## Appendix ## Appendix
### Simpler syntax ### Simpler syntax