mirror of
https://github.com/seigler/dash-docs
synced 2025-07-27 09:46:12 +00:00
Set license files and headers for bitcoin.org's content
This commit is contained in:
parent
27f1da3ba8
commit
2a139a51a1
276 changed files with 524 additions and 171 deletions
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The following guide aims to provide examples to help you start
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## P2P Network
|
||||
|
||||
### Retrieving A MerkleBlock
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Payment Processing
|
||||
|
||||
### Payment Protocol
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Testing Applications
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Transactions
|
||||
|
||||
### Transaction Tutorial
|
||||
|
@ -221,7 +226,7 @@ second argument (a JSON object) creates the output with the address
|
|||
(public key hash) and number of bitcoins we want to transfer.
|
||||
We save the resulting raw format transaction to a shell variable.
|
||||
|
||||

|
||||

|
||||
**Warning:** `createrawtransaction` does not automatically create change
|
||||
outputs, so you can easily accidentally pay a large transaction fee. In
|
||||
this example, our input had 50.0000 bitcoins and our output
|
||||
|
@ -429,7 +434,7 @@ Use the `dumpprivkey` RPC to get the private keys corresponding to the
|
|||
public keys used in the two UTXOs out inputs we will be spending. We need
|
||||
the private keys so we can sign each of the inputs separately.
|
||||
|
||||

|
||||

|
||||
**Warning:** Users should never manually manage private keys on mainnet.
|
||||
As dangerous as raw transactions are (see warnings above), making a
|
||||
mistake with a private key can be much worse---as in the case of a HD
|
||||
|
@ -586,7 +591,7 @@ Offline signing is safe. However, in this example we will also be
|
|||
spending an output which is not part of the block chain because the
|
||||
transaction containing it has never been broadcast. That can be unsafe:
|
||||
|
||||

|
||||

|
||||
**Warning:** Transactions which spend outputs from unconfirmed
|
||||
transactions are vulnerable to transaction malleability. Be sure to read
|
||||
about transaction malleability and adopt good practices before spending
|
||||
|
@ -973,7 +978,7 @@ redeem script.
|
|||
The P2SH address is returned along with the redeem script which must be
|
||||
provided when we spend satoshis sent to the P2SH address.
|
||||
|
||||

|
||||

|
||||
**Warning:** You must not lose the redeem script, especially if you
|
||||
don't have a record of which public keys you used to create the P2SH
|
||||
multisig address. You need the redeem script to spend any bitcoins sent
|
||||
|
@ -1124,7 +1129,7 @@ transaction, the same way we got private keys in the Complex Raw
|
|||
Transaction subsection. Recall that we created a 2-of-3 multisig pubkey script,
|
||||
so signatures from two private keys are needed.
|
||||
|
||||

|
||||

|
||||
**Reminder:** Users should never manually manage private keys on
|
||||
mainnet. See the warning in the [complex raw transaction section][devex
|
||||
complex raw transaction].
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
<!--Temporary disclaimer BEGIN-->
|
||||
<div id="develdocdisclaimer" class="develdocdisclaimer"><div>
|
||||
<b>BETA</b>: This documentation has been written recently and still needs more reviews to ensure all content is covered correctly and accurately; if you find a mistake, please <a href="https://github.com/bitcoin/bitcoin.org/issues/new" onmouseover="updateIssue(event);">report an issue</a> on GitHub. <a href="#" onclick="disclaimerClose(event);">Click here</a> to close this disclaimer.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Block Chain
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Contracts
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The Developer Guide aims to provide the information you need to understand
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Mining
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Operating Modes
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## P2P Network
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Payment Processing
|
||||
|
||||
{% autocrossref %}
|
||||
|
@ -116,7 +121,7 @@ payment requests is recommended.
|
|||
increased security, authentication of a receiver's identity using X.509 certificates,
|
||||
and other important features such as refunds.
|
||||
|
||||

|
||||

|
||||
**Warning:** Special care must be taken to avoid the theft of incoming
|
||||
payments. In particular, private keys should not be stored on web servers,
|
||||
and payment requests should be sent over HTTPS or other secure methods
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Transactions
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Wallets
|
||||
|
||||
{% autocrossref %}
|
||||
|
@ -508,7 +513,7 @@ as 128 bits is the the only data the user needs to backup in order to
|
|||
derive every key created by a particular wallet program using
|
||||
particular settings.
|
||||
|
||||

|
||||

|
||||
**Warning:** As of this writing, HD wallet programs are not expected to
|
||||
be fully compatible, so users must only use the same HD wallet program
|
||||
with the same HD-related settings for a particular root seed.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Block Chain
|
||||
|
||||
The following subsections briefly document core block details.
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
### Hash Byte Order
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
#### addmultisigaddress
|
||||
|
||||
~~~
|
||||
|
@ -1925,7 +1930,7 @@ getinfo
|
|||
|
||||
Prints various information about the node and the network.
|
||||
|
||||

|
||||

|
||||
**Warning:** `getinfo` will be removed in a later version of Bitcoin
|
||||
Core. Use `getblockchaininfo`, `getnetworkinfo`, or `getwalletinfo`
|
||||
instead.
|
||||
|
@ -3222,7 +3227,7 @@ getwork [data]
|
|||
Provides a block header which can be hashed to attempt to find the next
|
||||
block, and lets a miner return a successful header.
|
||||
|
||||

|
||||

|
||||
**Warning:** `getwork` will be removed in Bitcoin Core 0.10. Use
|
||||
the `getblocktemplate` RPC instead.
|
||||
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
#### help
|
||||
|
||||
~~~
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
#### ping
|
||||
|
||||
~~~
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
#### validateaddress
|
||||
|
||||
~~~
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
{% autocrossref %}
|
||||
|
||||
The Developer Reference aims to provide specifications and API information
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## P2P Network
|
||||
|
||||
{% autocrossref %}
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Transactions
|
||||
|
||||
The following subsections briefly document core transaction details.
|
||||
|
@ -63,7 +68,7 @@ A complete list of OP codes can be found on the Bitcoin Wiki [Script
|
|||
Page][wiki script], with an authoritative list in the `opcodetype` enum
|
||||
of the Bitcoin Core [script header file][core script.h]
|
||||
|
||||

|
||||

|
||||
**<span id="signature_script_modification_warning">Signature script modification warning</span>:**
|
||||
Signature scripts are not signed, so anyone can modify them. This
|
||||
means signature scripts should only contain data and data-pushing op
|
||||
|
@ -73,7 +78,7 @@ makes a transaction non-standard, and future consensus rules may forbid
|
|||
such transactions altogether. (Non-data-pushing op codes are already
|
||||
forbidden in signature scripts when spending a P2SH pubkey script.)
|
||||
|
||||

|
||||

|
||||
**`OP_CHECKMULTISIG` warning:** The multisig verification process
|
||||
described above requires that signatures in the signature script be
|
||||
provided in the same order as their corresponding public keys in
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
## Wallets
|
||||
|
||||
### Deterministic Wallet Formats
|
||||
|
|
|
@ -1,3 +1,8 @@
|
|||
{% comment %}
|
||||
This file is licensed under the MIT License (MIT) available on
|
||||
http://opensource.org/licenses/MIT.
|
||||
{% endcomment %}
|
||||
|
||||
<!-- Terms; must have tooltip description in "quotes"; alphabetical order -->
|
||||
[51 percent attack]: /en/developer-guide#term-51-attack "The ability of someone controlling a majority of hashing power to revise transactions history and prevent new transactions from confirming"
|
||||
[addr message]: /en/developer-guide#term-addr-message "A Bitcoin network protocol message which relays IP addresses and port numbers of active nodes to other nodes and clients, allowing decentralized peer discovery."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue