You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: bip-0171.mediawiki
+8-1Lines changed: 8 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -26,7 +26,7 @@ All matching parameters may be specified with multiple comma-separated values, w
26
26
Each result is always in JSON format, with a line-feed (never a carriage-return) separating multiple results.
27
27
28
28
Authentication for subscription-based services MAY be supported using standard HTTP authentication.
29
-
It is recommended to use TLS (HTTPS), so that MITM attackers cannot deceive the client.
29
+
It is recommended to use TLS (HTTPS) and/or Linked Data Signatures, so that MITM attackers cannot deceive the client.
30
30
31
31
To be BIP 171 compatible, servers MUST support at least one currency-pair compared to XBT.
32
32
All inquiries for bitcoin amounts MUST be specified in XBT, even if the presentation to the end user is in another unit.
@@ -59,6 +59,7 @@ Each currency-pair will receive a separate result, a JSON Object, with the follo
59
59
* ''base'' - The currency code for the base currency.
60
60
* ''locale'' - If provided, a String with the applicable Unicode CLDR locale.
61
61
* ''desc'' - Optional description. For example, it could be "Based on Florida BTM prices." or any other short String that provides information useful to the user. SHOULD be shorter than 45 characters.
62
+
* ''signature'' - Optional. May be used for Linked Data Signatures.
62
63
63
64
Example:
64
65
@@ -92,6 +93,7 @@ Each currency-pair will receive a separate result, a JSON Object, with the follo
92
93
* ''longpoll'' - If provided and true, indicates longpolling is supported by the server.
93
94
* ''history'' - If provided, indicates the server has historical records going back no earlier than the POSIX timestamp provided as a value.
94
95
* ''archive'' - If provided, indicates the server no longer has current rates, and has no historical rates more recent than the POSIX timestamp provided as a value.
96
+
* ''signature'' - Optional. May be used for Linked Data Signatures.
95
97
96
98
Example:
97
99
@@ -116,6 +118,7 @@ Each currency-pair receives a separate result (a JSON Object) with all requested
116
118
* ''time'' - The time (as a POSIX timestamp) the rate information is applicable to (should be approximately the request time).
117
119
* ''rates'' - A JSON Object with each rate type provided as a key, and a Number as the value specifying the rate.
118
120
* ''nonce'' - Only if the request specified a nonce, the server SHOULD include it here as a JSON String.
121
+
* ''signature'' - Optional. May be used for Linked Data Signatures.
119
122
120
123
Example:
121
124
@@ -191,3 +194,7 @@ While this new standard is adopted, software and providers can continue to use a
191
194
==Reference implementation==
192
195
193
196
TODO
197
+
198
+
==See also==
199
+
200
+
* [https://w3c-dvcg.github.io/ld-signatures/ Draft W3c Linked Data Signatures specification]
0 commit comments