Module: BitPay
- Defined in:
- lib/bitpay/version.rb,
lib/bitpay.rb,
lib/bitpay/client.rb,
lib/bitpay/key_utils.rb
Overview
license Copyright 2011-2014 BitPay, Inc., MIT License see opensource.org/licenses/MIT or github.com/bitpay/php-bitpay-client/blob/master/LICENSE
Defined Under Namespace
Classes: BitPayError, Client, KeyUtils
Constant Summary collapse
- CA_FILE =
Location of SSL Certificate Authority File As sourced from curl.haxx.se/ca/cacert.pem
File.join File.dirname(__FILE__), 'bitpay','cacert.pem'
- API_URI =
Location of API
'https://bitpay.com'
- TEST_API_URI =
'https://test.bitpay.com'
- CLIENT_REGISTRATION_PATH =
'/api-access-request'
- BITPAY_CREDENTIALS_DIR =
Location for API Credentials
File.join(Dir.home, ".bitpay")
- PRIVATE_KEY_FILE =
'bitpay.pem'
- PRIVATE_KEY_PATH =
File.join(BITPAY_CREDENTIALS_DIR, PRIVATE_KEY_FILE)
- USER_AGENT =
User agent reported to API
'ruby-bitpay-client '+VERSION
- MISSING_KEY =
'No Private Key specified. Pass priv_key or set ENV variable PRIV_KEY'
- MISSING_PEM =
'No pem file specified. Pass pem or set ENV variable BITPAY_PEM'
- VERSION =
'2.0.0'