Commit Graph

4755 Commits

Author SHA1 Message Date
Scala Steward
e852b11dbc
Update flyway-core, ... to 11.0.0 (#5782) 2024-11-26 11:39:26 -06:00
Chris Stewart
d1618a2277
Add unit test for RescanState to test recursive rescans correctly (#5786) 2024-11-26 11:13:06 -06:00
Chris Stewart
d5a77a2297
wallet: Batch database actions in processBlockCachedUtxos() (#5788) 2024-11-26 10:35:08 -06:00
Chris Stewart
ba8dd75312
refactor: DRY for DLCWalletLoaderApi.loadWallet() (#5787)
* refactor: DRY for DLCWalletLoaderApi.loadWallet()

* Make loadWallet() private

* fix
2024-11-25 12:45:29 -06:00
Chris Stewart
c6917b296b
config: Rename config option bitcoin-s.wallet.defaultAccountType -> bitcoin-s.wallet.purpose (#5783) 2024-11-24 08:16:18 -06:00
Chris Stewart
dbe1e7b686
tests: Make NeutrinoNodeWalletTest more robust against spurious failures (#5784)
* tests: Make NeutrinoNodeWalletTest more robust against spurious failures

* Revert things
2024-11-23 16:40:40 -06:00
Chris Stewart
f6f01f333a
wallet: Cleanup RescanHandlingTest (#5781) 2024-11-22 11:07:22 -06:00
Chris Stewart
345ab017e5
testkit: Randomize defaultAccountType (purpose) in tests (#5775)
* testkit: Randomize defaultAccountType (purpose) in tests

* Remove redundant defaultAccountType settings

* scalafmt

* Fix ProcessBlockTest for nested-segwit purposes

* Fix dlcWalletTest
2024-11-22 11:07:13 -06:00
Scala Steward
795def555c
Update flyway-core, ... to 10.22.0 (#5779) 2024-11-22 09:24:58 -06:00
Scala Steward
e680c9d643
Update pekko-http, pekko-http-testkit to 1.1.0 (#5778) 2024-11-22 09:02:09 -06:00
Chris Stewart
fb318efe5e
core: Fix bug where we weren't checking for valid hash types in TaprootKeyPath.isValid() (#5780)
* core: Fix bug where we weren't checking for valid hash types in TaprootKeyPath.isValid()

* Fix TaprootWitness generator to use valid taproot hash types
2024-11-21 11:42:18 -06:00
Chris Stewart
b6cc97a663
2024 11 20 prevoutmap ordering (#5776)
* Add test case and add invariant to RawTxSigner.sign()

* Add InputInfo.sortPreviousOutputMap()

* Fix bug where we were sorting prevoutputmap when it didn't need to be sorted
2024-11-21 08:59:15 -06:00
Chris Stewart
d8ad023254
wallet: Implement taproot keypath handling in the wallet (#5772) 2024-11-20 11:16:27 -06:00
Chris Stewart
67bb3ceabd
2024 10 31 taproot signing (#5767)
* core: Implement TaprootKeyPath signing

* core: Rebase, remove isDummySignature

* Empty commit to run CI
2024-11-18 09:43:29 -06:00
Chris Stewart
80be2f5989
2024 11 15 partialsig typeparam (#5770)
* Add DigitalSignature type param to PartialSignature

* Remove isDummySignature
2024-11-18 09:15:33 -06:00
Chris Stewart
bb0e40f05b
2024 11 16 rm isdummysig (#5771)
* WIP: Remove isDummySignature

* Add ECDigitalSignature.LOW_R_SIZE, use it in ECDigitalSignature.dummyLowR

* Regenerated dlc_test.json and dlc_tx_test.json to add hash type to dummy ecdsa signatures in static test vectors

* Regenerated dlc_test.json and dlc_tx_test.json to add hash type to dummy ecdsa signatures in static test vectors

* Fix InputInfoTest maxWitnessLengths checks to be >=

* Fix docs
2024-11-17 07:45:24 -06:00
Chris Stewart
fc4802d4b0
core: Implement BIP86 (#5768)
* core: Implement BIP86

* Fix HDUtil.getXprivVersion()

* Fix WalletUnitTest
2024-11-14 11:16:25 -06:00
Chris Stewart
cccaa582bd
Add Sign.{schnorrSign(),schnorrSignWithNonce()} to Sign interface (#5754)
* Add Sign.{schnorrSign(),schnorrSignWithNonce} to Sign interface

* Add schnorrSignWithHashType()
2024-11-13 10:42:45 -06:00
Chris Stewart
c5d57de618
core: Fix divergence in behavior between TransactionSignatureSerializer.hashForSignature() methods (#5765) 2024-11-13 10:03:40 -06:00
Chris Stewart
17f965fd45
2024 11 09 schnorrsig hashtype (#5764)
* Add SchnorrDigitalSignature.hashTypeOpt, add DigitalSignature.{hashTypeOpt,appendHashType}

* Remove TaprootKeyPath.hashTypeOpt param
2024-11-09 12:52:45 -06:00
Scala Steward
35fdb07e2d
Update sbt-buildinfo to 0.13.1 (#5763) 2024-11-09 09:36:40 -06:00
Scala Steward
340edc85b0
Update sbt-bloop to 2.0.5 (#5762) 2024-11-09 09:16:19 -06:00
Chris Stewart
d255914765
refactor: Use ECDigitalSignature.appendHashType() throughout codebase (#5761) 2024-11-09 09:15:37 -06:00
Scala Steward
39e23c2a09
Update flyway-core, ... to 10.21.0 (#5759) 2024-11-07 09:07:54 -06:00
Chris Stewart
4e8d5ecc7f
Add Sign.{signWithHashType(),signLowRWithHashType} (#5757)
* Add Sign.{signWithHashType(),signLowRWithHashType}, integrate it throughout the codebase

* Remove deprecated SignerUtils.doSign()
2024-11-07 09:07:41 -06:00
Scala Steward
21dd6fee80
Update sbt-bloop to 2.0.4 (#5758) 2024-11-07 08:49:00 -06:00
Scala Steward
3569f51870
Update sbt, scripted-plugin to 1.10.5 (#5756) 2024-11-05 14:16:25 -06:00
Scala Steward
aafac07491
Update sbt-buildinfo to 0.13.0 (#5755) 2024-11-05 11:39:07 -06:00
Chris Stewart
e69e1e5ad1
2024 10 31 digitalsignature (#5752)
* Add DigitalSignature, extend it with ECDigitaSignature,SchnorrDigitalSignature

* WIP: Remove EmptyDigitalSignature case object in favor of val

* Fix byte representation of ECDigitalSignature.emptyDigitalSignature

* Simplify names to ECDigitalSignature.{empty, dummy, dummyLowR}

* Fix docs
2024-11-01 11:46:26 -05:00
Oleg
e45860af90
Docs: README (#5751)
Hello. Made some changes in the test documentation
2024-10-31 11:11:43 -05:00
Chris Stewart
5187eee42a
core: Terminate rescan early when RescanStarted.stop() is called rather than wait for the rescan to complete (#5749)
Add checks if recursiveRescanP is completed before attempting to fail the Future

Fix potential deadlock in RescanStarted.stop(), add RescanState test

Add unit test to make sure we propagate exceptions correctly

Move RescanStateTest to jvm only

Link completeRescanEarlyP and blocksMatchedF together in RescanStateTest

Revert DLCWalletLoaderApi.scala
2024-10-30 16:47:39 -05:00
Scala Steward
18c74c1351
Update bcprov-jdk18on to 1.79 (#5750) 2024-10-30 16:35:06 -05:00
Chris Stewart
471c063532
Remove rescan specific threadpool (#5746) 2024-10-30 10:10:55 -05:00
Chris Stewart
835c98e5b9
Fix race condition in WebsocketTests (#5748)
* Try bumping timeout of 'receive updates when an address is generated' to avoid spurious failures on CI

* Set logging to DEBUG

* Add more logging

* Empty commit to re-run CI

* More println

* Fix race conditions in WebsocketTests

* remove println
2024-10-30 08:42:08 -05:00
Chris Stewart
3ae69b6ab5
wallet: Get processBlockCachedUtxos() using DBIOAction (#5740)
* wallet: Get processBlockCachedUtxos() using DBIOAction

* Remove unused val
2024-10-29 06:00:57 -05:00
Scala Steward
2366b80c70
Update sbt, scripted-plugin to 1.10.4 (#5743) 2024-10-28 14:52:00 -05:00
Chris Stewart
f75a52b521
Refactor TransactionProcessing.processTransaction() to use BlockHashWithConfs (#5744)
* Refactor TransactionProcessing.processTransaction() to use BlockHashWithConfs

Create WalletUtil.getBlockHashWithConfs(), use it in various places through the codebase

* Fix docs
2024-10-28 12:52:53 -05:00
Chris Stewart
2521c5da0e
Fix noisy log in TransactionProcessing (#5742) 2024-10-28 08:42:09 -05:00
Scala Steward
91b3fc1e45
Update logback-classic to 1.5.12 (#5741) 2024-10-26 10:00:45 -05:00
Chris Stewart
fe8acbb42f
2024 10 25 Get TransactionProcessing.processTransactionImpl() using a single database transaction (#5739)
* Get TransactionProcessing.processTransactionImpl() using a single database transaction

Revert BlockHashWithConfs.scala

Get TransactionProcessing.processTransactionImpl() using a single DBIOAction to encapsulate our wallet's processing of a bitcoin transaction into a single database transaction

* Fix WalletCallbacksTest

* Revert logback-test.xml
2024-10-26 08:08:56 -05:00
Chris Stewart
8917188220
wallet: Rework where we fetch the number of block confirmations for a tx in the wallet (#5738)
* wallet: Rework where we fetch the number of block confirmations for a tx in the wallet

* fix reserve handling
2024-10-26 06:57:44 -05:00
Chris Stewart
30663fe622
Remove scala version speicfic build code (#5737) 2024-10-24 11:44:10 -05:00
Scala Steward
387bcfdeb8
Update flyway-core, ... to 10.20.1 (#5735) 2024-10-24 11:43:35 -05:00
Scala Steward
ff459b674c
Update sqlite-jdbc to 3.47.0.0 (#5736) 2024-10-24 11:17:18 -05:00
Chris Stewart
29f10d046c
Turn on -Xlint (#5728)
Get entire codebase compiling

Fix DLCDAO

Revert .jvmopts

Finish rebase
2024-10-24 06:59:50 -05:00
Chris Stewart
e419b18d9c
2024 10 23 merkle vector (#5734)
* Rework MerkleBlock/PartialMerkleTree data structures to use Vector

* Fix base case for Merkle.build()
2024-10-23 16:14:33 -05:00
Chris Stewart
07f17cfedf
Rework Block and Transaction data structures to use Vector rather than Seq (#5733) 2024-10-23 14:27:07 -05:00
Chris Stewart
65e67287f8
2024 10 21 Replace Future.sequence() usage with Future.traverse() (#5732)
* Use more Future.traverse()

* More Future.traverse()
2024-10-22 16:57:23 -05:00
Scala Steward
528ceae9d4
Update sbt-ci-release to 1.9.0 (#5731) 2024-10-22 15:19:52 -05:00
Chris Stewart
88125a3575
Remove .jvmopts file comments, they do not work on ubuntu (#5730) 2024-10-22 06:25:50 -05:00