Commit Graph

1216 Commits

Author SHA1 Message Date
Chris Stewart
2879d9c25c 2019 02 14 fix digital signature bug ln invoice (#337)
* Fix bug of sign issue when serializing r,s ln invoice signatures, we weren't using the proper sign in some rare cases. We always want the BigInteger to be non-negative for r,s

* Fixing initialization problem with EmptyDigitalSignature

* revert default Deps.scala bitcoinsV to published version

* Address code review nits

* remove negative ln currency unit test case
2019-02-16 16:04:31 -06:00
Torkel Rogstad
696e9f4c45 Add BasicArithmetic trait (#329)
* Add BasicArithmetic to MilliSatoshis

* Add BasicArithmetic

* Add LnCurrencyUnit, CurrencyUnit, Number to BasicArithmetic

* Add tests for BasicArithmetic

* Make logger in unit test class protected and annotated

* Use BitcoinSUnitTest class

* Address code review
2019-02-16 15:19:00 -06:00
Chris Stewart
15160eccc6 Fix bench project configuration (#338) 2019-02-16 14:54:17 -06:00
Chris Stewart
dc4def1d7f Bump scalac to 2.12.8 (#340)
* Bump scalac to 2.12.8

* Bump scalac in .travis.yml
2019-02-16 14:52:04 -06:00
Chris Stewart
fe4d26858c Add bitcoin-s unit test class, all unit tests going forward should extend this (#335) 2019-02-15 07:13:33 -06:00
Chris Stewart
614efece23 Fix initialization problem with LnInvoice and the separator char (#334) 2019-02-14 07:16:15 -06:00
Chris Stewart
e3a99f085f Add explicit test cases for parsing an htlc (#333) 2019-02-13 08:56:24 -06:00
Chris Stewart
50aa66404c Change Factory to an abstract class (#330) 2019-02-07 19:58:39 -06:00
Chris Stewart
b44c7af53d Make start methods return Future[Unit] (#328)
WIP: Refactoring EclairTestUtil to use Futures

Finished refactor EclairTestUtil to use futures

Address code review

fix async bug in chan opening

Change snapshot version to something that should compile
2019-02-07 19:58:18 -06:00
Torkel Rogstad
065a2a45d6 Get Eclair data dir from config in EclairAuthCredentials (#326)
* Get Eclair data dir from config in EclairAuthCredentials

* Removes faulty datadir opt

* Include datadir in EclairInstance.fromDatadir
2019-02-04 10:05:40 -06:00
Chris Stewart
77d0f98f95 remove response trace log (#325) 2019-02-04 06:27:36 -06:00
Torkel Rogstad
9fd5f52b98 Default param in Eclair RPC fromDatadir, tweaks ChannelUpdate RPC type (#324)
* Add default param to fromDatadir, fromConfigFile method, default bitcoind rpc port

* Set ChannelUpdate.htclMaximumUpdate to Option
2019-02-04 06:02:30 -06:00
Chris Stewart
6dce938f06 rm usage of getSimpleName, as it breaks logback logging schemes (#322) 2019-02-03 10:51:31 -06:00
Chris Stewart
375acfd65e add logs in eclair rpc client for requests and responses (#321) 2019-02-02 17:22:13 -06:00
Torkel Rogstad
8a203e881f Fixes conversion bug when sending with Eclair RPC (#318)
* Improved toString for LnCurrencyUnit

* Test for amount equality in RPC send methods

* Fix conversion bug in Eclair RPC client

* Version bump
2019-02-01 09:13:25 -06:00
Chris Stewart
4fa376eac9 Make timestamp a lazy val outside of versioning code (#317)
* Make timestamp a lazy val outside of versioning code

* revert bitcoin-s snapshot to something that is published
2019-01-30 04:38:15 -06:00
Torkel Rogstad
8bbd4e0631 Adds audit RPC call + test (#314) 2019-01-28 18:15:02 -06:00
Torkel Rogstad
9257a53fde Adds feebaseMsat and proportional fees for ChannelResult (#312)
* Adds feebaseMsat and proportional fees for ChannelResult

* Fixes updaterelayfee
2019-01-28 18:11:00 -06:00
Torkel Rogstad
bdf589cdc7 updates osx binaries (#308)
* updates osx binaries

* Add doc on binary signing
2019-01-28 09:55:56 -06:00
Chris Stewart
8ff839c2a6 Add sbt-git plugin, reformat snapshot versioning scheme (#309) 2019-01-23 10:23:05 -06:00
Chris Stewart
f0f34e2eb5 Add network call to eclair api (#310) 2019-01-23 10:22:45 -06:00
Torkel Rogstad
e068382701 findroute RPC call tests/types (#301)
* Improved toString methdos

* Eclair RPC for findroute

* ConfigUtil for getStringOrElse

* Scaladoc

* Version bump

* Typed ChannelDesc a and b fields
2019-01-23 08:45:46 -06:00
Torkel Rogstad
308384b2af Adds README notes on how to add Bitcoin-S in Ammonite (#300) 2019-01-21 07:12:03 -06:00
Torkel Rogstad
dec5bf0c14 Scaladoc (#296)
* Scaladoc formatting

* Adds sbt-api-mappings plugin
2019-01-21 06:36:39 -06:00
Torkel Rogstad
4761679b45 Update rpc README (#306) 2019-01-21 06:28:57 -06:00
Torkel Rogstad
2b7212905a Tunes scoverage (#303) 2019-01-20 14:57:16 -06:00
Torkel Rogstad
8180a22377 Adds Bitcoin-S static site (#299) 2019-01-18 06:34:27 -06:00
Torkel Rogstad
fd2c39abff Improves types for Eclair RPC (#298)
* Improves types for Eclair RPC

* Version bump

* Adds note in README.md on where artifacts are published
2019-01-18 06:34:08 -06:00
Chris Stewart
ab95053af8 version 0.0.3 (#290)
* version 0.0.3

* Fix cross compile issues so we can now compile and publish a dependency for the scala 2.11 series

scalafmt

* bump versions on readme, try to fix scoverage crossversion issue

* Downgrade scoverage to try and get it to work with ci

* Tinker with scoverage versions

* Add suggestion from scoverage people to exclude secp256k1jni from build coverage
2019-01-10 09:07:18 -06:00
Torkel Rogstad
22f8b35700 Scaladoc formatting (#295) 2019-01-10 08:54:57 -06:00
sken
4c7a3731f1 fix uncaught exception in ScriptNumber (#293) 2019-01-09 13:29:59 -06:00
Torkel Rogstad
edcf097b2a Scaladoc formatting (#292) 2019-01-09 08:57:30 -06:00
Chris Stewart
268e235b4d Add secp256k1jni readme, start working main project readme, move old readme to core/README.md (#276)
Add documentation for TxBuilder

Try to fix links on core/README.md

add readme badges for bintray

Nits and formatting of README (#23)

ran scalafmt, fixed format in secp readme
2019-01-08 09:29:06 -06:00
Torkel Rogstad
aa65b783cc Scaladoc formatting (#287) 2019-01-08 05:55:33 -06:00
Chris Stewart
a2504ba6d7 Bump version to 0.0.3-SNAPSHOT 2019-01-07 19:37:42 -06:00
Nadav Kohen
cc04732e41 RpcRetryException (#274)
* Created RpcRetryException for better error messages on RpcUtil timeouts

* De-duplicated RpcUtil

* Ran scalafmt

* Fixed an import and a version
2019-01-07 16:49:17 -06:00
Torkel Rogstad
1301336231 Adds typesafe-config parsing of bitcoin.conf (#279)
* Adds typesafe-config parsing of bitcoin.conf

Adds ZmqConfig trait

* Only add datadir if not present

* Use old and new config settings
2019-01-07 09:30:59 -06:00
Torkel Rogstad
abcd7c5d6d Fixes some Scaladocs (#286)
* Fixes some Scaladocs

* ran scalafmt

* ran test:scalafmt
2019-01-07 09:23:29 -06:00
Chris Stewart
a50c6c15b3 Add test case (#285)
WIP2

Fix bug where we weren't padding byte boundary on signature data

fix nits, run scalafmt

Address torkel's code review
2019-01-07 07:53:52 -06:00
Chris Stewart
f46e3b1de0 Add 'Script' abstract class, make ScriptSignature and ScriptPubKey extend it. Make underlying data represensation cache asm in ScriptPubKey and ScriptSignature (#246)
Revert bitcoinsV
2019-01-05 18:25:33 -06:00
Chris Stewart
5bd3395280 Add ability to publish snapshots for bitcoin-s (#281) 2019-01-05 09:40:51 -06:00
Torkel Rogstad
4dd45847fc Compile and publish locally before tests (#282)
* Adds CONTRIBUTING.MD

* Compile and publish locally before tests
2019-01-05 08:31:40 -06:00
Chris Stewart
c12bc0dd59 Add osx to the operating system matrix (#273)
remove openjdk from ci matrix

Specify what osx image to use: https://docs.travis-ci.com/user/reference/osx#jdk-and-os-x

Try specify xcode9.3 in the os matrix

remove oraclejdk8 requirement

chmod on bitcoin binaries (#21)

* chmod on bitcoin binaries

* platform dependent binary fetchin

* platform dependent binary fetchin attempt 2

* bash is stupid

* bash is stupid take 2

* bash is stupid take 3

Remove DataTypeConverter dependency which was moved in the jdk

2018 12 17 add osx ci take2 (#22)

* bash is stupid take 4

* bash is stupid take 5

* bash is stupid take 6

bump timeout

reduce amount of blocks generated for pruned chain client

bump time out of encrypted wallet

fix comment

bump wallet encryption timeout... again
2018-12-18 19:29:59 -06:00
Dan-Smith-Suredbits
326d950ac3 Add 64 bit osx libsecp256k1 binaries (#272) 2018-12-17 16:11:42 -06:00
Chris Stewart
497a4d7274 2018 12 14 rm gen dup test files (#269)
* remove duplicate files in rpc,eclair-rpc and replace them with publish testkit dep

remove gen package, fix bugs in testkit generators that weren't properly copied for the gen project

* Adding bintray resolver, fixing bug in bech32 address generator where exception was being thrown because an unassigned witness spk was hash was being called
2018-12-15 10:09:52 -06:00
Chris Stewart
ad3f935e4e WIP: Add ability to publish to bintray, take on the org.scijava native-lib… (#268)
* Add ability to publish to bintray, take on the org.scijava native-lib-loader dependenency so we can bundle secp256k1 natively in a jar file and publish. This dependency will allow us to link the correct secp256k1 version dependending on the os and arch in the future

* Add sbt-pgp plugin to sign binaries, modify project names to all have the 'bitcoin-s-' prefix.

* Adding linux 32 bit secp256k1 natives to secp256k1jni project

* Add mising linux_64 binaries

* remove unused symlinks
2018-12-14 13:09:53 -06:00
Chris Stewart
44bccce602 Add hard coded secp256k1 files for linux x86_64 bit arch (#263)
* Add hard coded secp256k1 files for linux x86_64 bit arch

* Add binary files that ignored in .gitignore
2018-12-11 15:38:17 -05:00
Chris Stewart
a8e513fd0c Rework TransactionWitness, add more tests for resizing (#267)
Turn down logging again
2018-12-10 10:53:45 -05:00
Chris Stewart
cc2067c88c Remove all old EscrowTimeoutScriptSig/ScriptPubKey and channels stuff, this is obsolete now with the Lightning Network (#265)
run scalafmt
2018-12-09 15:47:57 -05:00
Nadav Kohen
4b8cebf3a4 Added scalafmt and ran it (#264) 2018-12-09 14:43:31 -05:00