mirror of
https://github.com/seigler/dash-docs
synced 2025-07-28 10:16:15 +00:00
Dev Docs: Add "Edit|History|Report Issue|Discuss" Links To Subheads
This commit is contained in:
parent
25acab7584
commit
f368d38e04
27 changed files with 331 additions and 20 deletions
|
@ -2,8 +2,13 @@
|
|||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
{% assign filename="_includes/ref_core_rpc_intro.md" %}
|
||||
|
||||
## Bitcoin Core APIs
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
### Hash Byte Order
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
|
@ -91,3 +96,15 @@ print "System byte order:", byteorder
|
|||
print "Internal-Byte-Order Hash: ", hash.encode('hex_codec')
|
||||
print "RPC-Byte-Order Hash: ", hash[::-1].encode('hex_codec')
|
||||
{% endhighlight %}
|
||||
|
||||
### Remote Procedure Calls (RPCs)
|
||||
{% include helpers/subhead-links.md %}
|
||||
|
||||
**Warning:** the block chain and memory pool can include arbitrary data
|
||||
which several of the commands below will return in hex format. If you
|
||||
convert this data to another format in an executable context, it could
|
||||
be used in an exploit. For example, displaying an output script as
|
||||
ASCII text in a webpage could add arbitrary Javascript to that page and
|
||||
create a cross-site scripting (XSS) exploit. To avoid problems, please
|
||||
treat block chain and memory pool data as an arbitrary input from an
|
||||
untrusted source.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue