summaryrefslogtreecommitdiff
path: root/bip-0013.mediawiki
diff options
context:
space:
mode:
authorPeter Todd <pete@petertodd.org>2013-10-21 00:32:10 -0400
committerPeter Todd <pete@petertodd.org>2013-10-21 00:32:10 -0400
commit1f64d2b06d628dffdc297be9a8afbb9da4e6b6ca (patch)
tree5371678540387f3399091d08b395997677e6e46b /bip-0013.mediawiki
parente81db32a42e95de3abe33a055c61548f2d59a536 (diff)
downloadbips-1f64d2b06d628dffdc297be9a8afbb9da4e6b6ca.tar.xz
Rename to mediawiki extension
Diffstat (limited to 'bip-0013.mediawiki')
-rw-r--r--bip-0013.mediawiki52
1 files changed, 52 insertions, 0 deletions
diff --git a/bip-0013.mediawiki b/bip-0013.mediawiki
new file mode 100644
index 0000000..97b8b8b
--- /dev/null
+++ b/bip-0013.mediawiki
@@ -0,0 +1,52 @@
+<pre>
+ BIP: 13
+ Title: Address Format for OP_EVAL
+ Author: Gavin Andresen <gavinandresen@gmail.com>
+ Status: Accepted
+ Type: Standards Track
+ Created: 18-10-2011
+</pre>
+==Abstract==
+
+This BIP describes a new type of Bitcoin address to support arbitrarily complex transactions. Complexity in this context is defined as what information is needed by the recipient to respend the received coins, in contrast to needing a single ECDSA private key as in current implementations of Bitcoin.
+
+In essence, an address encoded under this proposal represents the encoded hash of a [[script]], rather than the encoded hash of an ECDSA public key.
+
+==Motivation==
+
+Enable "end-to-end" secure wallets and payments to fund escrow transactions or other complex transactions. Enable third-party wallet security services.
+
+==Specification==
+
+The new bitcoin address type is constructed in the same manner as existing bitcoin addresses (see [[Base58Check encoding]]):
+
+ base58-encode: [one-byte version][20-byte hash][4-byte checksum]
+
+Version byte is 2 for a main-network address, 109 for a testnet address.
+The 20-byte hash is the hash of the script that will be used to redeem the coins.
+And the 4-byte checksum is the first four bytes of the SHA256 hash of the version and hash.
+
+==Rationale==
+
+One criticism is that bitcoin addresses should be deprecated in favor of a more user-friendly mechanism for payments, and that this will just encourage continued use of a poorly designed mechanism.
+
+Another criticism is that bitcoin addresses are inherently insecure because there is no identity information tied to them; if you only have a bitcoin address, how can you be certain that you're paying who or what you think you're paying?
+
+Furthermore, truncating SHA256 is not an optimal checksum; there are much better error-detecting algorithms. If we are introducing a new form of Bitcoin address, then perhaps a better algorithm should be used.
+
+This is one piece of the simplest path to a more secure bitcoin infrastructure. It is not intended to solve all of bitcoin's usability or security issues, but to be an incremental improvement over what exists today. A future BIP or BIPs should propose more user-friendly mechanisms for making payments, or for verifying that you're sending a payment to the Free Software Foundation and not Joe Random Hacker.
+
+Assuming that typing in bitcoin addresses manually will become increasingly rare in the future, and given that the existing checksum method for bitcoin addresses seems to work "well enough" in practice and has already been implemented multiple times, the Author believes no change to the checksum algorithm is necessary.
+
+==Backwards Compatibility==
+
+This proposal is not backwards compatible, but it fails gracefully-- if an older implementation is given one of these new bitcoin addresses, it will report the address as invalid and will refuse to create a transaction.
+
+==Reference Implementation==
+
+https://github.com/gavinandresen/bitcoin-git/tree/op_eval
+
+==See Also==
+
+The OP_EVAL BIP.
+