diff --git a/COPYING b/COPYING index d2d665f7..0622f9f0 100644 --- a/COPYING +++ b/COPYING @@ -1,9 +1,5 @@ -Various picture files inside the folders listed above are subjected to copyright restrictions. The use of these materials is not permitted unless otherwise specified by their copyright owner. - -img/brand -img/wallets -img/screenshots -img/faq -img/innovation -img/press -img/os +The intellectual property rights in the files are owned by the respective +authors. Some of the files can be licensed under MIT License (MIT) available on +http://opensource.org/licenses/MIT or other licenses. Appropriate licensing +information can be found in the header of the file or in the folder containing +the file. diff --git a/_autocrossref.yaml b/_autocrossref.yaml index 1ff00463..9f96f000 100644 --- a/_autocrossref.yaml +++ b/_autocrossref.yaml @@ -1,4 +1,7 @@ --- +# This file is licensed under the MIT License (MIT) available on +# http://opensource.org/licenses/MIT. + ## List of words to match with references in _includes/references.md ## in developer documentation, used by autocrossref.rb plugin. ## "pattern to match in file" => "reference to give it" diff --git a/_contrib/comparelinks.rb b/_contrib/comparelinks.rb index 33bbc6a3..a8786301 100644 --- a/_contrib/comparelinks.rb +++ b/_contrib/comparelinks.rb @@ -1,3 +1,6 @@ +# This file is licensed under the MIT License (MIT) available on +# http://opensource.org/licenses/MIT. + ## This script is used to compare all links between two branches of the ## website. Each branches are built and compared. diff --git a/_contrib/updatetx.rb b/_contrib/updatetx.rb index f0870bfe..5139640b 100755 --- a/_contrib/updatetx.rb +++ b/_contrib/updatetx.rb @@ -1,5 +1,8 @@ #!/usr/bin/env ruby +# This file is licensed under the MIT License (MIT) available on +# http://opensource.org/licenses/MIT. + #Drop outdated fallback HTML code in all layouts for specified language. #Example: ./_contrib/updatetx.rb diff --git a/_includes/example_intro.md b/_includes/example_intro.md index 309f71d0..028db219 100644 --- a/_includes/example_intro.md +++ b/_includes/example_intro.md @@ -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 diff --git a/_includes/example_p2p_networking.md b/_includes/example_p2p_networking.md index 1297c1da..0f3790b5 100644 --- a/_includes/example_p2p_networking.md +++ b/_includes/example_p2p_networking.md @@ -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 diff --git a/_includes/example_payment_processing.md b/_includes/example_payment_processing.md index 0c642b5e..80c1ce1d 100644 --- a/_includes/example_payment_processing.md +++ b/_includes/example_payment_processing.md @@ -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 diff --git a/_includes/example_testing.md b/_includes/example_testing.md index 7ba770f0..c58863c0 100644 --- a/_includes/example_testing.md +++ b/_includes/example_testing.md @@ -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 %} diff --git a/_includes/example_transactions.md b/_includes/example_transactions.md index f0bd96ff..db303a65 100644 --- a/_includes/example_transactions.md +++ b/_includes/example_transactions.md @@ -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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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. -![Warning icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **Reminder:** Users should never manually manage private keys on mainnet. See the warning in the [complex raw transaction section][devex complex raw transaction]. diff --git a/_includes/fragment_reviews_needed.md b/_includes/fragment_reviews_needed.md index d6c1f774..d73fb174 100644 --- a/_includes/fragment_reviews_needed.md +++ b/_includes/fragment_reviews_needed.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} +
BETA: 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 report an issue on GitHub. Click here to close this disclaimer. diff --git a/_includes/guide_block_chain.md b/_includes/guide_block_chain.md index 1c7d3aa1..efaf0cc1 100644 --- a/_includes/guide_block_chain.md +++ b/_includes/guide_block_chain.md @@ -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 %} diff --git a/_includes/guide_contracts.md b/_includes/guide_contracts.md index 490f82d5..95afdceb 100644 --- a/_includes/guide_contracts.md +++ b/_includes/guide_contracts.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + ## Contracts {% autocrossref %} diff --git a/_includes/guide_intro.md b/_includes/guide_intro.md index 88bf5996..90663ee4 100644 --- a/_includes/guide_intro.md +++ b/_includes/guide_intro.md @@ -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 diff --git a/_includes/guide_mining.md b/_includes/guide_mining.md index dcf9dabd..15f8bb5a 100644 --- a/_includes/guide_mining.md +++ b/_includes/guide_mining.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + ## Mining {% autocrossref %} diff --git a/_includes/guide_operating_modes.md b/_includes/guide_operating_modes.md index 0a689789..a69e78e4 100644 --- a/_includes/guide_operating_modes.md +++ b/_includes/guide_operating_modes.md @@ -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 %} diff --git a/_includes/guide_p2p_network.md b/_includes/guide_p2p_network.md index e5790f41..13be9187 100644 --- a/_includes/guide_p2p_network.md +++ b/_includes/guide_p2p_network.md @@ -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 %} diff --git a/_includes/guide_payment_processing.md b/_includes/guide_payment_processing.md index 4e57f194..e2212138 100644 --- a/_includes/guide_payment_processing.md +++ b/_includes/guide_payment_processing.md @@ -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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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 diff --git a/_includes/guide_transactions.md b/_includes/guide_transactions.md index 267fd3bc..3d8ab975 100644 --- a/_includes/guide_transactions.md +++ b/_includes/guide_transactions.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + ## Transactions {% autocrossref %} diff --git a/_includes/guide_wallets.md b/_includes/guide_wallets.md index aa7ee6ac..e9e37baf 100644 --- a/_includes/guide_wallets.md +++ b/_includes/guide_wallets.md @@ -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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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. diff --git a/_includes/ref_block_chain.md b/_includes/ref_block_chain.md index 1c807049..89b39a8e 100644 --- a/_includes/ref_block_chain.md +++ b/_includes/ref_block_chain.md @@ -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. diff --git a/_includes/ref_core_rpc_intro.md b/_includes/ref_core_rpc_intro.md index 2705f1c9..5273df19 100644 --- a/_includes/ref_core_rpc_intro.md +++ b/_includes/ref_core_rpc_intro.md @@ -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 %} diff --git a/_includes/ref_core_rpcs-abcdefg.md b/_includes/ref_core_rpcs-abcdefg.md index 743505d2..d0be0b97 100644 --- a/_includes/ref_core_rpcs-abcdefg.md +++ b/_includes/ref_core_rpcs-abcdefg.md @@ -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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **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 icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **Warning:** `getwork` will be removed in Bitcoin Core 0.10. Use the `getblocktemplate` RPC instead. diff --git a/_includes/ref_core_rpcs-hijklmn.md b/_includes/ref_core_rpcs-hijklmn.md index 504b13aa..6243811b 100644 --- a/_includes/ref_core_rpcs-hijklmn.md +++ b/_includes/ref_core_rpcs-hijklmn.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + #### help ~~~ diff --git a/_includes/ref_core_rpcs-opqrst.md b/_includes/ref_core_rpcs-opqrst.md index b049ab7f..541e7cd1 100644 --- a/_includes/ref_core_rpcs-opqrst.md +++ b/_includes/ref_core_rpcs-opqrst.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + #### ping ~~~ diff --git a/_includes/ref_core_rpcs-uvwxyz.md b/_includes/ref_core_rpcs-uvwxyz.md index 7d729177..dadcc45e 100644 --- a/_includes/ref_core_rpcs-uvwxyz.md +++ b/_includes/ref_core_rpcs-uvwxyz.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + #### validateaddress ~~~ diff --git a/_includes/ref_intro.md b/_includes/ref_intro.md index af69660d..150a1195 100644 --- a/_includes/ref_intro.md +++ b/_includes/ref_intro.md @@ -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 diff --git a/_includes/ref_p2p_networking.md b/_includes/ref_p2p_networking.md index 2327a390..3df1b3af 100644 --- a/_includes/ref_p2p_networking.md +++ b/_includes/ref_p2p_networking.md @@ -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 %} diff --git a/_includes/ref_transactions.md b/_includes/ref_transactions.md index 06256f6a..e1872c6d 100644 --- a/_includes/ref_transactions.md +++ b/_includes/ref_transactions.md @@ -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] -![Warning icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **Signature script modification warning:** 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.) -![Warning icon](/img/icon_warning.svg) +![Warning icon](/img/icons/icon_warning.svg) **`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 @@ -155,7 +160,8 @@ bytes commonly used by Bitcoin are: Bitcoin's base58 encoding, called [Base58Check][]{:#term-base58check}{:.term} may not match other implementations. Tier Nolan provided the following example encoding algorithm to the Bitcoin Wiki [Base58Check -encoding](https://en.bitcoin.it/wiki/Base58Check_encoding) page: +encoding](https://en.bitcoin.it/wiki/Base58Check_encoding) page under +the [Creative Commons Attribution 3.0 license][]: {% highlight c %} code_string = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" diff --git a/_includes/ref_wallets.md b/_includes/ref_wallets.md index 477e7c1d..7f22b096 100644 --- a/_includes/ref_wallets.md +++ b/_includes/ref_wallets.md @@ -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 diff --git a/_includes/references.md b/_includes/references.md index 19a18df5..e78c0a44 100644 --- a/_includes/references.md +++ b/_includes/references.md @@ -1,3 +1,8 @@ +{% comment %} +This file is licensed under the MIT License (MIT) available on +http://opensource.org/licenses/MIT. +{% endcomment %} + [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-reference#alert "The P2P network message which relays IP addresses and port numbers of active nodes to other nodes and clients, allowing decentralized peer discovery." @@ -353,6 +358,7 @@ [core git]: https://github.com/bitcoin/bitcoin [core paymentrequest.proto]: https://github.com/bitcoin/bitcoin/blob/master/src/qt/paymentrequest.proto [core script.h]: https://github.com/bitcoin/bitcoin/blob/master/src/script.h +[creative commons attribution 3.0 license]: https://creativecommons.org/licenses/by/3.0/ [DER]: https://en.wikipedia.org/wiki/Abstract_Syntax_Notation_One [dig command]: https://en.wikipedia.org/wiki/Dig_%28Unix_command%29 [DNS A records]: http://tools.ietf.org/html/rfc1035#section-3.2.2 diff --git a/_layouts/alert.html b/_layouts/alert.html index c0d8ec45..4062e67c 100644 --- a/_layouts/alert.html +++ b/_layouts/alert.html @@ -1,4 +1,7 @@ --- +# This file is licensed under the MIT License (MIT) available on +# http://opensource.org/licenses/MIT. + layout: base lang: en --- diff --git a/_layouts/base.html b/_layouts/base.html index 718cf122..95636deb 100644 --- a/_layouts/base.html +++ b/_layouts/base.html @@ -1,8 +1,12 @@ +--- +# This file is licensed under the MIT License (MIT) available on +# http://opensource.org/licenses/MIT. +--- - + {% capture title %}{% translate title %}{% endcapture %}{% if title != '' %}{{ title }}{% else %}{{ page.title }}{% endif %} {% capture metadescription %}{% translate metadescription %}{% endcapture %}{% if metadescription != '' %}{% endif %} @@ -12,7 +16,7 @@ {% if page.lang == 'bg' or page.lang == 'ko' or page.lang == 'hi' or page.lang == 'pl' or page.lang == 'sl' or page.lang == 'ro' or page.lang == 'ru' or page.lang == 'tr' or page.lang == 'uk' or page.lang == 'zh_CN' or page.lang == 'zh_TW' %}{% lesscss sans.less %}{% endif %} - +
@@ -41,7 +45,7 @@ - +