Commit Graph

1269 Commits

Author SHA1 Message Date
Torkel Rogstad
8179ac6090 Docs: Merge pull request #489 from torkelrogstad/2019-06-03-website-ci
Docs: conditional Travis based on commit message
2019-06-03 11:29:23 +02:00
Torkel Rogstad
2815243e58 Docs: conditional Travis based on commit message 2019-06-03 11:18:19 +02:00
Torkel Rogstad
f387aaf7b1 Merge pull request #487 from torkelrogstad/2019-05-31-publish-website
Publish website
2019-06-03 10:29:19 +02:00
Torkel Rogstad
a19dc94bef Doc: Add stable and unstable version, try bitcoin-s script 2019-05-31 17:14:15 +02:00
Torkel Rogstad
b14a053bb6 Fix documentation for connecting to bitcoind 2019-05-31 17:14:08 +02:00
Chris Stewart
5256327a56 Downgrade sbt-api-mappings plugin to try and get it to work with mac osx (#486)
* Downgrade sbt-api-mappings plugin to try and get it to work with mac osx

* Change version to 2.1.0
2019-05-30 13:38:36 -05:00
Chris Stewart
8bede3fddc Give sbt-api-mappings plugin a concrete version, fix compiler warnings with unused imports (#485) 2019-05-30 09:47:21 -05:00
Chris Stewart
08b4ee1afe update readmes (#467) 2019-05-30 09:02:03 -05:00
Torkel Rogstad
d3e6e4a65f Add Torkels PGP key to security.md (#483) 2019-05-29 05:26:28 -05:00
Torkel Rogstad
fb178eb295 Add proper parsing of bitcoin.conf, rework auth credentials (#478)
* Add proper parsing of bitcoin.conf, remove datadir

Somewhat recently a new config format was introduced
in Bitcoin Core. Options can now be specified under
section headers ([regtest], [main], [test]), as
well as with network prefixes (regtest.rpcport,
main.prune) and the traditional format. In this commit
we introduce a new type BitcoindConfig that parses
this format. We also make the necessary changes in
the bitcoind/Eclair RPC clients to accomodate this new
type.

We also remove the datadir field from
BitcoindAuthCredentials. This is not strictly necessary
to connect to a bitcoind, so this is a bad separation
of concerns. The datadir field is instead moved into
the BitcoindInstance.

Finally we go over some places in tests and test
utils and assert that we are operating in the
user temporary directory. This is a safety measure
so that other developers/users won't do the same
mistake I did while working on this and accidentally
blow up their $HOME/.bitcoin directory.

* Add BitcoindRpcClient.fromDatadir

* Address code review from Chris
2019-05-28 11:33:16 -05:00
Torkel Rogstad
c07ae36076 Add access modifier sort rewrite rule (#468) 2019-05-22 05:54:41 -05:00
Torkel Rogstad
242f68cb42 Further specify how to publish website (#476) 2019-05-22 05:53:37 -05:00
Torkel Rogstad
6bc6378f96 WIP: Docusaurus website (#465)
* Docs: Introduce new Docusaurus-based website

This commit is the result of running
npx docusaurus-init, and nothing more.
Further changes will happen on top of
this, to make it easier to review changes
and update to newer versions of Docusaurus
in the future.

* WIP: Add Bitcoin-S website

Change the default Docusaurus template to a custom website. Goes
off of existing documentation, and moves it into the new docs and
website directories. Deletes some unused files, such as
BUILD_README.md

* Initial mdoc support

* Add Scaladoc to website

* Add SVG assets

* Change colors, flesh out pages, correct Scaladoc links

* Rename doc project to scripts, move security doc to website

* Add copy buttons to website code snippets

* Add doc and tasks for publishing website

* Refactor how paths get copied after generating Scaladocs

* Add Get Started button

* Replace bitcoin-s logo with white text

* Add Montserrat font for headers

* flesh out user showcase and landing page

* Change Scaladoc URL to bitcoins package
2019-05-14 18:05:14 -05:00
Chris Stewart
0841995ab0 Creates a package for the bench project, moves BlockBench into that package (#472) 2019-05-14 09:21:50 -05:00
Chris Stewart
2a3c4a1c2b move upload to coveralls into test script, add GitVersioning plugin to various sub projects (#466) 2019-05-09 13:18:30 -05:00
Chris Stewart
21eddd58fb 2019 05 04 sbt ci release (#464)
* Add sbt-ci-release-plugin

* Adjust travis ci file to account for sbt-ci-release
2019-05-09 11:37:05 -05:00
Chris Stewart
e97fe626d6 Add script to connect to a local/remote running bitcoind instance and print the balance of the wallet (#459)
Rm hardcoded username and env var for pw
2019-05-06 09:07:17 -05:00
Torkel Rogstad
90f2551571 BIP84 and BIP49 (#444)
* BIP84 and BIP49

* Respond to code review

* Update HDChainType.scala
2019-05-03 04:47:10 -05:00
Chris Stewart
23b500e169 Ignore eclair test case for now as it almost always fails on CI (#456) 2019-05-02 09:18:57 -05:00
Torkel Rogstad
e34c4505d4 Natural language syntax for currencies (#440)
* Convert CurrencyUnit and LnCurrencyUnit Scalacheck to Scalatest

* Add Int and Long syntax to LnCurrencyUnit, MilliSatoshis and CurrencyUnit

* Tweak toString methods
2019-05-02 06:49:35 -05:00
Ramon Boss
6944f948ab added test and fixed code (#435) 2019-04-23 13:44:27 -05:00
Chris Stewart
e5f9885312 Rename root project to 'bitcoins' (#420) 2019-04-15 14:38:25 -05:00
Torkel Rogstad
db15731b93 Add Bloop config, documentation (#412) 2019-04-15 13:08:51 -05:00
Chris Stewart
4572a9e9c2 Bump sbt version to 1.2.8 (#411) 2019-04-12 06:00:53 -05:00
Torkel Rogstad
78fc13c43e Fix bug in how addresses are passed to bitcoind (#404) 2019-04-10 13:37:46 -05:00
Torkel Rogstad
2e9c524652 Add AES encryption and decryption (#395) 2019-04-08 09:47:43 -05:00
sken
ad910d8c51 fix issue where it ECPubkey validation returns false positive (#397) 2019-03-29 14:17:25 -05:00
Torkel Rogstad
fb16d6b200 Add support for Bitcoin Core 0.17 (#384) 2019-03-26 12:41:05 -05:00
Chris Stewart
4d88354073 Implement nbits compression encoding for the difficulty threshold in … (#390)
* Implement nbits compression encoding for the difficulty threshold in a block header

* Create BlockHeader.TargetDifficultyHelper to pass around meta info about the difficulty, implement rest of test cases in arith_uint256_tests.cpp related to pow difficulty

* Address torkel's code review
2019-03-26 11:07:27 -05:00
Chris Stewart
3b8d6af4c6 2019 03 20 chainparams add mining consensus rules (#388)
* Add mining parameters to bitcoin-s chain params

* Add allowMinDifficultyBlocks and noRetargeting to ChainParams

* Add basic unit tests for new chain params vals

* Add powLimit tests

* Address torkel's code review
2019-03-21 09:10:18 -05:00
Chris Stewart
c0672bcfb1 Reduce number of payments sent from 5 to 2 in gossiping channel updat… (#385)
* Reduce number of payments sent from 5 to 2 in gossiping channel updates messages

* Try to reduce EclairRpcTestUtil.sendPayments to just one payment
2019-03-20 06:28:36 -05:00
Torkel Rogstad
06e5b6b450 Add BIP44 and BIP32 path support (#379)
* Add BIP44 and BIP32 path support

Make paths from strings, indexes/coins/chains,
BIP32 children types.

Derive xprivs and xpubs from paths.

* Address code review on BIP44 from Chris

* Rename children -> path, bip32child -> bip32node

* update README with bip44 name changes
2019-03-19 13:09:11 -05:00
Torkel Rogstad
e83b40ea93 Add doc on generating coverage report (#380) 2019-03-14 11:39:45 -05:00
Chris Stewart
35493249cc Implement difficulty calculation from nBits (#377)
* Implement difficulty calculation from nBits

* Torkel's suggest to use bitvector indexing rather than bitmasks

* Explicitly import BitcoinSUnitTest
2019-03-12 07:49:51 -05:00
Chris Stewart
eaa87b1e2b Move BitcoinSUnitTest abstract class to the testkit project so it can be reused across our codebase (#375) 2019-03-07 14:48:34 -06:00
Chris Stewart
9fceb5266b Fix compilation problem on scala 2.11.x wrt trezor test cases (#372) 2019-03-04 15:53:18 -06:00
Chris Stewart
7e9f4362bf Make the doublesha256digest generator more random (#371) 2019-03-04 15:21:38 -06:00
Torkel Rogstad
1ffeb73cd8 Fix Ammonite compile errors (#368) 2019-03-01 06:36:13 -06:00
Chris Stewart
201e52f32d Integrate big endian hashes, integrate them into the bitcoind-rpc project (#364) 2019-02-28 13:27:06 -06:00
Chris Stewart
c78ab5b860 Bump dependencies (#366) 2019-02-28 07:24:10 -06:00
Chris Stewart
a7920b7512 Fix package path for CryptoGenerators (#365) 2019-02-28 06:46:58 -06:00
Torkel Rogstad
db5a7254b9 BIP39 support (#353)
* Adds SHA256 hashing of BitVector

* Add BIP39 support
2019-02-28 06:13:37 -06:00
Torkel Rogstad
25fa009b95 Rework Bech32 (#360)
Refactor commonalities between LN and BTC
Add support for RegTest
2019-02-27 15:55:41 -06:00
Torkel Rogstad
bad37db6fa Adds Ammonite REPL in test scope (#323) 2019-02-26 06:16:12 -06:00
Nadav Kohen
a0c1ab91b4 testkit refactor (rename and repackage) (#355)
* Refactored testkit to have a package called testkit and renamed AsyncUtil and TestUtil, ran scalafmt

* Updated internal file names list
2019-02-21 10:04:31 -06:00
Torkel Rogstad
0e9e021ad7 Updates READMEs for root, testkit and zmq (#356) 2019-02-21 07:44:33 -06:00
Chris Stewart
3e7d1d4461 Update readme with new version (#350) 2019-02-19 18:53:10 -06:00
Chris Stewart
cf4d80626a Clean up compiler warnings (#349) 2019-02-19 14:44:44 -06:00
Chris Stewart
88e6450c5a Reduce number of requests we send to eclair in testkits, add commandN… (#343)
* Reduce number of requests we send to eclair in testkits, add commandName param to parseResult in EclairRpcClient

* Factor our EclairRpcClient error message

* Make jvm opts more sane, refactor error message code again

* Add error message on EclairRpcTestUtil.sendPayments, scalafmt
2019-02-19 14:18:37 -06:00
Nadav Kohen
abc6f55a08 transformRetryToTestFailure in scala 2.11.12 (#346)
* Made transformRetryToTestFailure compile in scala 2.11.12

* Fixed RpcUtilTest

* Replaced match with if/else because match wasn't working
2019-02-19 13:00:43 -06:00