Commit graph

1734 commits

Author SHA1 Message Date
Nadav Kohen
512b23ba63 Added PubKey addition functionality (#1051) 2020-01-21 14:30:28 -07:00
rorp
17c21b3bac Eclair performance tests (#1013)
* Eclair performance tests

* some more changes

* fix unit tests

* scaladoc

* limit number of payment requests

* fix build errors
2020-01-21 12:54:15 -08:00
Chris Stewart
b8c59b4c93 2020 1 11 accounts (#1022)
* Create 'fundRawTransaction' and 'fundRawTransactionInternal'

* Move TransactionTestUtil to testkit, begin writing tests for fundrawtransaction

* Add FundTransactionTests

* Move things to 'FundTransactionHandling' trait

* Start segregating things by HDAccount in the wallet, this gives us the ability to query for balances based on account, fund a transaction based on an account, generate a new address based on an account etc. All old api calls are now based on the default account, i.e. getBalance() returns the balance for account 0, fundRawTransaction funds the transaction from account 0 etc.

* Fix compile issue with 2.11.x

* Bump address generation Thread.sleep() to 500ms

* Address ben code review

* Address code review
2020-01-21 14:20:58 -06:00
Nadav Kohen
603951ea53 Updated P2PKWithTimeout to use CSV instead of CLTV (#1050) 2020-01-21 12:43:09 -07:00
rorp
ee579117cd Merge branch 'master' into eclair_bench 2020-01-21 10:17:20 -08:00
rorp
a288f1dfac fix build errors 2020-01-21 10:15:39 -08:00
Chris Stewart
03ed5b0d57 Try bumping the Thread.sleep() to get CI to pass on slow mac osx (#1042) 2020-01-19 09:41:54 -06:00
Scala Steward
15bfe4f4d9 Update sbt to 1.3.7 (#1034) 2020-01-18 15:42:28 -06:00
rorp
983850f441 limit number of payment requests 2020-01-16 13:01:54 -08:00
Nadav Kohen
db6447d88a Single Signing (#1020)
* Introduced UTXOSpendingInfoSingle

* Implemented constructors for UTXOSpendingInfoSingle

* Introduced BitcoinSignerSingle

* Implemented SingleSigner

* Added property-based test for SingleSigner, it fails

* Fixed SignerTest :)

* Responded to code review

* Added scaladocs

* Fixed p2sh(p2wsh) signing

* Responded to code review and separated UTXOSpendingInfoSingle from UTXOSpendingInfoFull

* Fixed outputGen after rebase

* Fixed txbuilder.md to show this branch's changes
2020-01-15 10:00:55 -07:00
rorp
b9504acc1b scaladoc 2020-01-14 14:10:19 -08:00
rorp
b379c75fb6 fix unit tests 2020-01-14 14:02:50 -08:00
rorp
74fa1e61af some more changes 2020-01-14 13:53:12 -08:00
Scala Steward
90f33819c0 Update sourcecode to 0.2.0 (#1024) 2020-01-14 07:16:27 -06:00
Chris Stewart
54b2fa814e 2020 1 04 fund raw tx (#1010)
* Create 'fundRawTransaction' and 'fundRawTransactionInternal'

* Move TransactionTestUtil to testkit, begin writing tests for fundrawtransaction

* Add FundTransactionTests

* Move things to 'FundTransactionHandling' trait

* Address code review

* Run scalafmt
2020-01-13 13:45:33 -06:00
Ben Carman
5750da8fb4 Increase core test coverage (#1017)
Increase core test coverage
2020-01-08 17:54:49 -06:00
Ben Carman
9c00162923 Increase core test coverage 2020-01-08 16:15:55 -06:00
rorp
2f9d3606ca Merge branch 'master' into eclair_bench 2020-01-07 16:52:58 -08:00
rorp
c854a96b2a Eclair Web Socket client (#1006)
* Eclair Web Socket client

* fix build error

* unit test
2020-01-07 18:25:35 -06:00
rorp
09769fd891 Merge branch 'master' into eclair_bench 2020-01-07 14:23:11 -08:00
Chris Stewart
0421076b21 Create MaskedToString, implement it in ECPrivateKey, ExtPrivateKey, M… (#1011)
* Create MaskedToString, implement it in ECPrivateKey, ExtPrivateKey, MnemonicCode

* Add MaskedToString to AesPassword, AesKey, and BIP39Seed

* Add final to MaskedToString.toString() so it can't be overriden
2020-01-07 12:31:13 -06:00
rorp
b5d21a5a54 Support for payment secret and features LN invoice tags (#1012) 2020-01-07 10:27:45 -08:00
rorp
b1e42e07a9 Eclair performance tests 2020-01-07 10:02:08 -08:00
Ben Carman
5ee3960e3a P2SH Signing (#993)
* P2SH Signing

* Clean code, give P2SHTxSigCompenent implicit type

* fix infinite loops

* Correctly use nested spending info for p2sh

* P2SHP2WSH Support

* Create actual sigs, incoroparte in tests

* Simplify code, make P2SHTxSigComponent ADT

* Fix test issues
2020-01-07 09:53:09 -06:00
Scala Steward
3df7fb824b Update sbt-mdoc to 2.1.1 (#1007) 2020-01-06 08:04:47 -06:00
Chris Stewart
3bedcb20e0 Add more expressive txo states for the wallet (#1001)
* Add more expressive txo states for the wallet

* Rename 'PendingReceived/PendingSpent' -> 'UnconfirmedReceived/UnconfirmedSent'

* Address code review

* Fix posInt implementation to work with older scala versions

* Rename to PendingConfirmationReceived/PendingConfirmationSpent
2020-01-05 18:42:20 -06:00
Chris Stewart
55f168f920 Implement abililty to use BIP39 password. This means this password ne… (#990)
* Implement abililty to use BIP39 password. This means this password needs to be password through our various projects to be able to correctly generate the key that controls the wallet. This also renames 'CreateKeyManagerApi' -> 'BIP39CreateKeymanagerApi' as the bip39 password is needed when creating the KeyManager

* Add bip39 password to BIP39KeyManager.fromParams(), fix mdocs

* Fix bug in unit test were whe weren't specifying password

* Fix rebase issues
2020-01-03 11:03:45 -06:00
rorp
93c02f02d0 Automated wallet recovery (#985)
* Automated wallet recovery

* responded to the PR comments

* some more changes

* fix docs

* cleanup
2020-01-02 13:18:41 -06:00
Scala Steward
ef99f92bd4 Update sbt-ci-release to 1.5.0 (#992) 2020-01-02 06:58:30 -06:00
Chris Stewart
c3fb7c9a67 This creates a subtype BIP39KeyManager and moves all existing KeyMana… (#988)
* This creates a subtype BIP39KeyManager and moves all existing KeyManager functionality to that subtype. We leave a empty 'KeyManager' trait for now

* Fix website docs
2019-12-27 10:09:04 -06:00
Scala Steward
31a233f0c5 Update scalacheck-1-14 to 3.1.0.1 (#987) 2019-12-27 05:54:10 -06:00
Scala Steward
62dff3f50a Update sbt-mdoc to 2.1.0 (#986) 2019-12-27 05:52:13 -06:00
Scala Steward
9ff7ebe467 Update sbt to 1.3.6 (#984) 2019-12-26 19:13:29 -06:00
Chris Stewart
24ff908240 Move initialization of wallet entropy into the key manager (#966)
* Move initialization of wallet entropy into the key manager

* Enable key-manager in ci, add coverage minimum

* Add coverage minimum for key manager, add KeyManagerParams, start adding KeyManager test harness

* Remove success cases on ADTs, start using Either

* fix import

* Get test coverage to 90%

* Add documentation for key-manager.md, add side bar for key-manager

* Fix wallet.md

* Make seedPath default to baseDatadir, so we don't have a unique seed for every network. Add more documentation

* Address code review

* Address code review from Ben

* Add missing import

* Add more tests for coverage
2019-12-26 19:12:08 -06:00
Scala Steward
57420f4ae0 Update sqlite-jdbc to 3.30.1 (#982) 2019-12-25 07:33:24 -06:00
Ben Carman
5e6b12ecd8 Change ScriptPubKey to RawScriptPubKey in ScriptWitness (#975) 2019-12-24 07:45:55 -06:00
rorp
72ead16e5c Move rescan logic from node to wallet (#974)
* Move rescan logic from node to wallet
2019-12-23 08:57:55 -08:00
Chris Stewart
78176af1e4 Add server to sidebar.json so that it shows up (#981) 2019-12-22 10:47:15 -06:00
Chris Stewart
6a5918fa50 Bump binary download timeout for bitcoind (#980) 2019-12-21 17:52:33 -06:00
Scala Steward
d98f9eb754 Update sourcecode to 0.1.9 (#979) 2019-12-21 17:06:50 -06:00
Chris Stewart
67eb7df235 2019 12 17 sign ext key (#959)
* Create ExtSign, use it on ExtPrivateKey

* Add documentation on how to Sign things with ExtSign

* Add ExtSign.sign for a bip32 path

* Make sign(bytes,path) not return a Future, add documentation

* Address nadav's code review

* Fix mdoc sign.md
2019-12-20 12:47:10 -06:00
Nadav Kohen
c67b2978bf P2PKWithTimeoutSPK (#967)
* Introduced P2PKWithTimeoutSPK

* Responded to review

* Added some testing for cltv and p2pkWithTimeout SPKs

* Responded to more review
2019-12-19 09:48:00 -06:00
Ben Carman
8241c8c2f8 Docs: update Security.md and fix edit button (#965) 2019-12-18 13:07:17 -06:00
Chris Stewart
aedc03bdfe Remove Sign trait from ECPublicKey, move signing functionality into ECPrivateKey (#962) 2019-12-17 15:15:20 -06:00
Chris Stewart
713d76ae67 Add invariant to WitnessTransaction that says inputs.length == witnes… (#954)
* Add invariant to WitnessTransaction that says inputs.length == witnesses.length

* Remove println

* Address code review
2019-12-17 13:42:58 -06:00
Ben Carman
535fd2d58f Merge pull request #958 from benthecarman/bitcoind-doc-version-update
Update bitcoind docs to have correct versions
2019-12-17 08:57:20 -06:00
Ben Carman
79a815a631 Update bitcoind docs to have correct versions 2019-12-17 08:47:08 -06:00
Scala Steward
cd942d646d Update slf4j-api to 1.7.30 (#953) 2019-12-17 05:55:15 -06:00
Chris Stewart
d9dcacf2da Add version 0.2.0 of the website (#948) 2019-12-16 05:57:14 -06:00
Scala Steward
ead511a1ec Update scalacheck to 1.14.3 (#946) 2019-12-15 18:29:30 -06:00