Commit Graph

29 Commits

Author SHA1 Message Date
Paul Daigle
cfc7cb9ccf add pair command to command line client
To support the pair command, cleaned up and extended client and
key_utils classes with more getters. Also added a param hash to the
invoice creation for extra items.

Updated Readme file
2014-10-07 15:27:33 -04:00
Paul Daigle
f64490125c remove broken cli functions, update key_utils 2014-10-07 01:06:31 -04:00
Paul Daigle
deca5e4e8b add license information 2014-10-07 00:52:27 -04:00
Paul Daigle
c8ff36fa13 Replace most ecdsa funtions with OpenSSL
This allows us to easily write a pem file to disk and recreate the key
from the pem file. We were unable to remove the ecdsa gem entirely, the
OpenSSL library does not handle EC signatures.
2014-10-06 23:38:28 -04:00
Paul Daigle
08f0a40aa2 Removing Compatibility methods
It doesn't make sense to be both cryptographically secure and insecure
in the same library.
2014-10-06 22:58:40 -04:00
Paul Daigle
2229f88db6 Use the public interface to retrieve an invoice
With this commit the following functionality is complete:
1. Using a token, pair a key
2. Create a new invoice
3. Retrieve the public invoice
2014-09-25 12:05:41 -04:00
Paul Daigle
98a71c3acf Library no longer supporting ruby 1.9.x
1.9.x will be deprecated in February of 2015, so there is little
incentive to write our new library to support it. 1.9.x users should
still be able to use V1 of the API.

This commit adds some changes, such as named arguments, that are
incompatible with 1.9.x.
2014-09-24 16:15:54 -04:00
Paul Daigle
dd67d86b6a Refactoring key utils and tests 2014-09-19 16:18:04 -04:00
Hamish Eisler
a5fd1bcac2 reminder to validate label 2014-09-19 07:19:25 +00:00
Hamish Eisler
c653e10390 store private key to FS and update tests 2014-09-19 00:40:53 +00:00
Hamish Eisler
e91b95cf36 refactor SIN to CLIENT_ID 2014-09-12 22:31:22 +00:00
Hamish Eisler
3f4e5b4dbc more tests plus CLI enhancements 2014-09-10 23:54:07 +00:00
Hamish Eisler
b5f559bf25 add more tests and cli 2014-09-10 17:08:48 +00:00
Hamish Eisler
473e67bce8 add tests and refactor 2014-09-08 09:28:59 +00:00
Hamish Eisler
e1783b5c1c refactoring and base tests 2014-09-05 06:42:23 +00:00
Hamish Eisler
3e237970c5 working SIN derivation 2014-09-03 23:06:48 -07:00
Hamish Eisler
e526f84236 incomplete upgrade to API v2 2014-09-02 22:52:19 -07:00
Hamish Eisler
3eb56c025f begin bitauth updates 2014-08-16 00:10:52 -07:00
Hamish Eisler
69b725072b fix certificate validation 2014-07-30 14:10:43 -07:00
Nathan Marley
95bf92a818 remove hard-coded version string from req header
Use the gem version constant instead of the string existing in
multiple places. This will prevent confusion in case the client
version is bumped but the request header gets missed. This could lead
to potential confusion if Bitpay ever needs to debug version of Ruby
client used to access the API.
2014-05-18 12:19:41 -07:00
Chaz Ferguson
2ed1fe5bd0 added plugin version header 2014-04-02 10:27:42 -04:00
Kyle Drake
722dcf32e6 0.1.2 (+ok @ryanxcharles) 2014-01-02 17:21:11 -08:00
Kyle Drake
060fc792a7 Force JSON for post body 2014-01-02 15:34:18 -08:00
Kyle Drake
3e099d0102 Remove one more reference to test key. 0.1.1 2013-11-29 06:33:16 -05:00
Kyle Drake
dc846e1458 0.1.0 2013-11-29 06:28:40 -05:00
Kyle Drake
9dd28ed55e pull unused test key #1 2013-11-29 06:26:57 -05:00
Kyle Drake
85c7a0746c minor fixes, documentation 2013-11-01 15:57:52 -07:00
Kyle Drake
9cf8ff40d8 strip whitespace 2013-11-01 11:51:38 -07:00
Kyle Drake
09f726b2d0 initial commit 2013-11-01 11:51:01 -07:00