Commit graph

2360 commits

Author SHA1 Message Date
Ben Carman
913f705167 Add address descriptors (#2176) 2020-10-13 06:14:11 -05:00
Ben Carman
890f4af04c docs: Clarify there are 2 options for node backend (#2177) 2020-10-13 06:13:03 -05:00
Ben Carman
8d58df8d42 BitcoindRpcConfig Test (#2181) 2020-10-13 06:10:36 -05:00
Ben Carman
128ff7de54 Create fromConfig functions for AppConfigs (#2170)
* Create fromConfig functions for AppConfigs

* Add fromClassPathConfig function
2020-10-12 14:07:45 -05:00
Ben Carman
3bd8764fa8 Add test for server startup (#2171)
* Add test for server startup

* Clear log location property after test
2020-10-12 12:15:27 -05:00
Ben Carman
d54c15d4cb Remove requirement for ZMQ with bitcoind backend (#2137)
* Remove requirement for ZMQ with bitcoind backend

* Add test, move poller to BitcoindRpcBackendUtil

* Add docs & logs, fix niche case

* Use AtomicReference, reset prevCount on failure
2020-10-12 07:59:57 -05:00
Scala Steward
3637a04fe4 Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.10 (#2166) 2020-10-12 07:09:09 -05:00
Scala Steward
9b1c23b4a7 Update postgresql to 42.2.17 (#2168) 2020-10-12 07:08:38 -05:00
Scala Steward
cbb9193ed2 Update sbt-native-packager to 1.7.6 (#2172) 2020-10-12 07:00:24 -05:00
Ben Carman
3f066d47e7 Fix NPE and log location on server start up (#2163) 2020-10-10 00:14:04 -05:00
Ben Carman
de99dfe984 Make tx an argument for decoderawtransaction (#2155)
* trivial: Make tx an argument for decoderawtransaction

* docs: Fix help command, add to docs
2020-10-10 00:13:20 -05:00
Nadav Kohen
6c73ecf433 P2SHTxSigComponent constructor now detects witness data (#2169) 2020-10-09 22:34:50 -05:00
Chris Stewart
379e6f6af6 Add -Xcheckinit copmiler flag to tests to try and find uninitialized vals (#2165) 2020-10-09 10:44:58 -05:00
Ben Carman
77e8cabf5b Oracle Announcement TLVs (#2149)
* Oracle Announcement TLV

* Add pubkey, event uri & descriptor

* TLVParentFactory, EnumEventDescriptorTLV

* Add trailing V0 to types

* Make names match spec pr

* Add range descriptor

* Add num outcomes to enum descriptor
2020-10-08 22:47:40 -05:00
Chris Stewart
2cad89c1a0 Fix npe exception on oracleServer/run (#2160) 2020-10-08 20:16:00 -05:00
Chris Stewart
66cd274f35 docs: Fix internal database configuration docs (#2156) 2020-10-08 19:31:03 -05:00
Chris Stewart
3625c5bf88 2020 10 08 issue 2147 (#2153)
* Add test case for resolving typesafe config variables and making sure we honor system properties

* Remove println

* Move AppConfigTest test caess into the db-commons project
2020-10-08 10:37:13 -05:00
Ben Carman
47388efcc0 Refactor Mains to use common BitcoinSRunner (#2141)
* Refactor Mains to use common BitcoinSRunner

* Give better name
2020-10-08 07:17:48 -05:00
Ben Carman
7b53b02cfa Make ZMQ Listeners typed (#2144) 2020-10-08 01:21:50 -05:00
Ben Carman
fc1557cbe9 Small improvements on FundTransactionHandling (#2143) 2020-10-07 15:39:32 -05:00
Chris Stewart
7582171660 2020 10 06 explicit classloader (#2148)
* Use explicit classloader

* Add OracleInfoTLV for easy publishing

* Get config resolution working on sb-api

* Remove OracleInfoV0TLV
2020-10-07 13:47:48 -05:00
Ben Carman
c06c323c39 Use Llyod's Oracle recommendations on commitment Signature (#2117) 2020-10-06 18:33:28 -05:00
Ben Carman
55e2138fc4 docs: Add Bitcoind Backend Docs (#2136) 2020-10-06 13:40:24 -05:00
Ben Carman
3ac4ebb749 Update slack links (#2134) 2020-10-06 12:53:38 -05:00
Ben Carman
d83f973ea8 Don't allow duplcate or 0 outcomes for a DLCOracle (#2120) 2020-10-06 07:51:34 -05:00
Ben Carman
ef996adccf Make cli pretty print json (#2130) 2020-10-06 06:36:03 -05:00
Ben Carman
e75b4ff4c9 Optimize GetHeadersMessage.fromBytes (#2131) 2020-10-06 06:35:29 -05:00
Ben Carman
52ba32769a Increase DLC Oracle test coverage (#2128) 2020-10-05 22:06:31 -05:00
Chris Stewart
ade2503702 2020 10 05 redo config (#2121)
* Use absolute paths for resolving configurations

Make log level OFF again

WIP: Move resolution of config into AppConfig.start(), things are totally broken

WIP: Make AppConfig.config private

Get all tests passing again but using absolute path in configuration

* Cherry-pick onto master

* Fix BitcoinSAppConfig configuration keys to use the full path

* Apply code review

* Fix log, move invariant for requiredConfirmations back into the lazy val

* Fix DlcOracleAppConfig to use absolute path
2020-10-05 18:00:30 -05:00
Ben Carman
81a5719450 docs: DLC Oracle Server (#2125)
* docs: DLC Oracle Server

* docs: Add sign event example
2020-10-05 17:05:06 -05:00
Chris Stewart
9b09b04230 Upgrade to scalac 2.13.3 (#2115) 2020-10-04 07:42:44 -05:00
Ben Carman
93852aa438 Add DLC Oracle Server Endpoints (#2105) 2020-10-03 15:24:02 -05:00
Chris Stewart
323d324c9c Move configuration for sqlite into the 'bitcoin-s' key (#2113)
* Move configuration for sqlite into the 'bitcoin-s' key

Fix tests

* Re-add test database configuration key

* Make log level OFF again
2020-10-03 09:34:40 -05:00
Ben Carman
d57c059921 Add basic DLC Oracle (#2094)
* Add basic DLC Oracle

* Respond to review

* Respond to more review

* Add maturation time

* Add to testkit, tag hashes, better val names

* More clear vals, version tagged hashes

* Signing key clean up

* Add pubkey to db
2020-10-03 08:04:57 -05:00
Nadav Kohen
e71b664e1a Brought down ecdsa adaptor signatures implemented in scala from the dlc-crypto branch (#2034) 2020-10-02 10:43:59 -05:00
Ben Carman
09dfd5eb73 Add BIP45 Multisig Purpose (#2103)
* Add BIP45 Multisig Purpose

* Fix multisig purpose, add tests
2020-10-02 10:43:25 -05:00
Ben Carman
9817f84fef Allow any HDCoinType (#2097) 2020-10-02 10:42:59 -05:00
Ben Carman
7d85358530 Enable AddrMessageTest (#2106) 2020-10-02 10:36:15 -05:00
Ben Carman
6bd12f1f19 Bitcoind backend on server start up (#2088) 2020-10-02 10:33:24 -05:00
Ben Carman
3d2088490a Add signet db settings (#2068) 2020-10-02 10:31:02 -05:00
rorp
1f4678afee Server installation guide (#2091) 2020-10-02 10:29:49 -05:00
Ben Carman
88f6759f5d Make bitcoind extend chain api (#2087) 2020-10-02 06:19:56 -05:00
Ben Carman
ed5228310b Use SubtractFeeFromOutputsFinalizer when sending full utxos (#2072) 2020-10-01 17:32:24 -05:00
Nadav Kohen
4c202fd016 Introduced NFC normalization for strings in CryptoUtil and added String hashing functions (#2102) 2020-10-01 14:37:28 -05:00
Ben Carman
ad6c2563bd Create Util functions for wallets with a bitcoind backend (#2076)
* Create Util functions for wallets with a bitcoind backend

* Move function, delete reduant function

* Fix imports
2020-09-30 08:50:49 -05:00
Ben Carman
108ffa0716 Create BitcoindRpcAppConfig (#2077)
* Create BitcoindRpcAppConfig

* Fix to lazy val

* Override stop function to not use db

* Add new config options to docs
2020-09-30 07:36:23 -05:00
Ben Carman
2d34e2b690 Move DLC Oracle module to master (#2083) 2020-09-29 19:48:02 -05:00
Scala Steward
67b6c7b172 Update javafx-base, javafx-controls, ... to 16-ea+2 (#2038) 2020-09-29 18:24:45 -05:00
Ben Carman
e505da3651 Calculate HRP from network param instead of the inverse (#2079)
* Calculate HRP from network param instead of the inverse

* make hrp lazy

* Fix imports
2020-09-29 17:00:46 -05:00
Scala Steward
8c1a1e4a12 Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.9 (#1993)
* Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.9

* Update akka-actor, akka-slf4j, akka-stream, ... to 2.6.9
2020-09-29 09:20:53 -05:00