forked from gavinandresen/paymentrequest
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix use-after-free bug, and better error handling
- Loading branch information
1 parent
5b691ea
commit 1068f4a
Showing
8 changed files
with
1,282 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,16 @@ | ||
Code implementing a simple payment protocol for Bitcoin (PaymentRequest/etc). | ||
|
||
See https://gist.github.com/4120476 | ||
See https://en.bitcoin.it/wiki/BIP_0070 | ||
|
||
Dependencies: | ||
OpenSSL (library and openssl command-line tool) | ||
Google Protocol Buffers (library and protoc command-line compiler) | ||
Files here: | ||
|
||
Debian/Ubuntu: | ||
apt-get install openssl protobuf | ||
OSX MacPorts: | ||
port install openssl protobuf | ||
paymentrequest.proto : Google protocol buffer definition of messages | ||
|
||
To compile: | ||
make | ||
Subdirectories here: | ||
|
||
The Makefile will create a "certificate authority in a box" in ca_in_a_box/ and | ||
compile command-line tools: | ||
c++ : command-line utilities for creating/validating PaymentRequests | ||
|
||
paymentrequest-create # Prototype code: create a PaymentRequest message | ||
paymentrequest-verify # Prototype code: verify a PaymentRequest message | ||
php : php code and a demo website for creating/validating PaymentRequests | ||
|
||
|
||
Example usage: | ||
paymentrequest-create paytoaddress=1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW memo="Just Testing" amount=11.0 | paymentrequest-dump | ||
ca_in_a_box : "certificate authority in a box", used to generate | ||
certificates and certificate chains for testing. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
Dependencies: | ||
OpenSSL (library and openssl command-line tool) | ||
Google Protocol Buffers (library and protoc command-line compiler) | ||
|
||
Debian/Ubuntu: | ||
apt-get install openssl protobuf | ||
OSX MacPorts: | ||
port install openssl protobuf | ||
|
||
To compile: | ||
make | ||
|
||
The Makefile will create a "certificate authority in a box" in ../ca_in_a_box/ and | ||
compile command-line tools: | ||
|
||
paymentrequest-create # Prototype code: create a PaymentRequest message | ||
paymentrequest-verify # Prototype code: verify a PaymentRequest message | ||
|
||
|
||
Example usage: | ||
paymentrequest-create paytoaddress=1BTCorgHwCg6u2YSAWKgS17qUad6kHmtQW memo="Just Testing" amount=11.0 | paymentrequest-dump |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.