Commit Graph

377 Commits

Author SHA1 Message Date
Jude Nelson
3ec52b6899 fix bug in checking API version 2017-03-31 18:09:11 -04:00
Jude Nelson
1c763224c5 Have the API server report its version on ping(), and make the API client check the version before doing anything (and aborting if the client version is different) 2017-03-30 19:55:51 -04:00
Jude Nelson
46e84402d6 use new ecdsa_private_key() wrapper to enforce our compression semantics 2017-03-30 18:26:45 -04:00
Jude Nelson
befde95a59 for now, unless the private key explicitly signals '01' for compressed, assume uncompressed 2017-03-30 18:26:29 -04:00
Jude Nelson
f777a890ac get off of virtualchain.BitcoinPublicKey wherever possible in favor of keylib 2017-03-30 14:59:14 -04:00
Jude Nelson
83871ba80b don't log a synthetic error message 2017-03-30 14:23:33 -04:00
Jude Nelson
1d49fe8cf2 don't try to push zonefiles to node.blockstack.org if we're only testing 2017-03-30 14:23:17 -04:00
Jude Nelson
51a2d281f1 rely on blockstack_client's hash functions 2017-03-30 14:06:55 -04:00
Jude Nelson
7a2e292885 move some of pybitcoin's hashing functionality into scripts 2017-03-30 14:06:39 -04:00
Jude Nelson
cf8af63c80 move off of pybitcoin for calculating change and making data outputs 2017-03-30 14:06:16 -04:00
Jude Nelson
adeda504b7 remove pybitcoin import 2017-03-30 14:06:05 -04:00
Jude Nelson
127b05b282 get off of pybitcoin; switch to virtualchain API 2017-03-30 14:05:54 -04:00
Jude Nelson
233bcafadf switch to virtualchain over pybitcoin 2017-03-30 14:05:43 -04:00
Jude Nelson
c6046a07f6 need b40 2017-03-30 11:59:25 -04:00
Jude Nelson
721cf40cb6 do not use virtualchain.analyze_private_key(), since it depends on pybitcoin.get_unspents() 2017-03-29 01:04:01 -04:00
Jude Nelson
8d5697e648 for API calls that take an address, re-encode them if need be to match the running system's version byte (so we can use the test framework alongside portal) 2017-03-29 01:03:38 -04:00
Jude Nelson
2169c376fe don't prompt for email address in non-interactive mode 2017-03-29 01:03:25 -04:00
Jude Nelson
82592b856d don't setup interactively if we request it 2017-03-29 01:03:15 -04:00
Jude Nelson
4f65195b6c code cleanup and refactoring---clarify why and how we wrap CLI methods to make them accessible to the API server 2017-03-28 13:24:16 -04:00
Jude Nelson
63da85d71e separate wallet-inspection logic from wallet-decryption logic 2017-03-28 11:12:59 -04:00
Jude Nelson
8124d127ea add setup_config() method 2017-03-28 11:12:49 -04:00
Jude Nelson
a8ed195723 use setup_config(); inspect wallet to force user to migrate legacy wallets over 2017-03-28 11:12:31 -04:00
Jude Nelson
998a51e870 use setup_config() in blockstack setup 2017-03-28 11:12:19 -04:00
Jude Nelson
3064a0338d bugfixes to config file loader to allow for merging changes, migrating field names and values, and filling in defaults 2017-03-28 10:42:34 -04:00
Jude Nelson
98703e8a94 start-foreground will run the API server in the foreground (no-fork) (#361) 2017-03-28 10:40:26 -04:00
Jude Nelson
1e230186be automatically migrate the config file to the latest version 2017-03-28 10:40:14 -04:00
Jude Nelson
687d01a96b catch common CLi typos and issue helpful warnings (#352) 2017-03-27 19:12:21 -04:00
Jude Nelson
eaaf6f5c7c moved broadcast_tx() 2017-03-27 18:10:13 -04:00
Jude Nelson
60c1e910dd remove pybitcoin dependency 2017-03-27 18:10:03 -04:00
Jude Nelson
cdbe6b0089 remove pybitcoin dependency 2017-03-27 18:09:53 -04:00
Jude Nelson
c84ba60285 require 'bearer' for API password (#351); add UTXO endpoints (#362) 2017-03-27 18:09:26 -04:00
Jude Nelson
0efdf19e36 send API password as 'bearer' (#351) 2017-03-27 18:08:54 -04:00
Jude Nelson
803734137a switch default UTXO providers to the blockstack explorer 2017-03-27 18:08:32 -04:00
Jude Nelson
dffc93ef22 some code clean up 2017-03-27 18:08:25 -04:00
Jude Nelson
042266ec5a remove old mock_utxo code; import utxo functionality from pybitcoin; add support for blockstack_explorer utxo provider 2017-03-27 18:07:56 -04:00
Jude Nelson
2206c74c8d remove pybitcoin dependency 2017-03-27 18:07:44 -04:00
Jude Nelson
3641e89f9b symbol imports 2017-03-27 18:07:31 -04:00
Jude Nelson
b397502c68 clean up imports; move broadcast_tx() to this module 2017-03-27 18:07:16 -04:00
Jude Nelson
9a49665d17 mask invalid or improperly-formated token errors 2017-03-27 18:06:57 -04:00
Jude Nelson
0800d0d98a move broadcast_tx 2017-03-27 18:06:48 -04:00
Jude Nelson
2e8ddd929c add blockstack explorer utxo client (#297) 2017-03-27 18:06:31 -04:00
Jude Nelson
805e2e1d2f import blockcypher utxo client from pybitcoin 2017-03-27 18:06:20 -04:00
Jude Nelson
fa74fbf9d4 import blockchain.info utxo provider client from pybitcoin 2017-03-27 18:06:09 -04:00
Jude Nelson
39fe76a347 import generic blockchain client from pybitcoin 2017-03-27 18:05:59 -04:00
Jude Nelson
e44ccd9bb6 import bitcoind utxo provider from pybitcoin 2017-03-27 18:05:50 -04:00
Jude Nelson
cabe0e626e test driver 2017-03-23 18:59:01 -04:00
Jude Nelson
3fb9203476 remove confusing log msg 2017-03-23 18:55:47 -04:00
Jude Nelson
f2b941c475 accept create= and exist= qs args 2017-03-23 18:55:35 -04:00
Jude Nelson
cd6232b147 enforce create/exists requirements for inodes; fix bugs found in testing with service-level faults 2017-03-23 18:55:15 -04:00
Jude Nelson
aad5916326 datastore operations that fail due to a driver error should return HTTP 200 but with a detailed JSON error code. 2017-03-22 23:30:01 -04:00