mirror of
https://github.com/bitcoin/bips.git
synced 2025-05-12 12:03:29 +00:00
BIP 171: Stub Linked Data Signatures support
This commit is contained in:
parent
51384ca981
commit
96f871c80f
@ -26,7 +26,7 @@ All matching parameters may be specified with multiple comma-separated values, w
|
||||
Each result is always in JSON format, with a line-feed (never a carriage-return) separating multiple results.
|
||||
|
||||
Authentication for subscription-based services MAY be supported using standard HTTP authentication.
|
||||
It is recommended to use TLS (HTTPS), so that MITM attackers cannot deceive the client.
|
||||
It is recommended to use TLS (HTTPS) and/or Linked Data Signatures, so that MITM attackers cannot deceive the client.
|
||||
|
||||
To be BIP 171 compatible, servers MUST support at least one currency-pair compared to XBT.
|
||||
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
|
||||
* ''base'' - The currency code for the base currency.
|
||||
* ''locale'' - If provided, a String with the applicable Unicode CLDR locale.
|
||||
* ''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.
|
||||
* ''signature'' - Optional. May be used for Linked Data Signatures.
|
||||
|
||||
Example:
|
||||
|
||||
@ -92,6 +93,7 @@ Each currency-pair will receive a separate result, a JSON Object, with the follo
|
||||
* ''longpoll'' - If provided and true, indicates longpolling is supported by the server.
|
||||
* ''history'' - If provided, indicates the server has historical records going back no earlier than the POSIX timestamp provided as a value.
|
||||
* ''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.
|
||||
* ''signature'' - Optional. May be used for Linked Data Signatures.
|
||||
|
||||
Example:
|
||||
|
||||
@ -116,6 +118,7 @@ Each currency-pair receives a separate result (a JSON Object) with all requested
|
||||
* ''time'' - The time (as a POSIX timestamp) the rate information is applicable to (should be approximately the request time).
|
||||
* ''rates'' - A JSON Object with each rate type provided as a key, and a Number as the value specifying the rate.
|
||||
* ''nonce'' - Only if the request specified a nonce, the server SHOULD include it here as a JSON String.
|
||||
* ''signature'' - Optional. May be used for Linked Data Signatures.
|
||||
|
||||
Example:
|
||||
|
||||
@ -191,3 +194,7 @@ While this new standard is adopted, software and providers can continue to use a
|
||||
==Reference implementation==
|
||||
|
||||
TODO
|
||||
|
||||
==See also==
|
||||
|
||||
* [https://w3c-dvcg.github.io/ld-signatures/ Draft W3c Linked Data Signatures specification]
|
||||
|
Loading…
x
Reference in New Issue
Block a user