Commit Graph

4692 Commits

Author SHA1 Message Date
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
Chris Stewart
28001af35e
Add .jvmopts, conslidate JVM options there (#5729) 2024-10-21 12:45:19 -05:00
Scala Steward
ed7a152a51
Update sbt, scripted-plugin to 1.10.3 (#5726) 2024-10-20 17:26:09 -05:00
Elias Rad
04b9e6e75f
Docs fix spelling issues (#5723)
* Update cli.md

* Update server.md

* Update chain.md
2024-10-19 15:13:22 -05:00
Chris Stewart
dca2146647
2024 10 19 rm generic btree (#5725)
* Remove BinaryTree.scala

* Enable -Xlint:type-parameter-shadow

* Remove implicit usage in BinaryTreeDoubleSha256Digest
2024-10-19 15:13:01 -05:00
Chris Stewart
5f47fbe9ac
Use BinaryTreeDoubleSha256Digest inside of Merkle.scala rather than BinaryTree[DoubleSha256Digest] (#5724) 2024-10-19 08:33:12 -05:00
Chris Stewart
613e19c281
Pull over docs/ from #5713 (#5722) 2024-10-18 13:11:12 -05:00
Scala Steward
9e61e9bab7
Update flyway-core, ... to 10.20.0 (#5717)
* Update flyway-core, ... to 10.20.0

* Add guava as a transitive dep for flyway 10.20.0

---------

Co-authored-by: Chris Stewart <stewart.chris1234@gmail.com>
2024-10-18 06:05:47 -05:00
Chris Stewart
7c07aa0355
Pull over simple syntax changes for {cli,oracleServer,bench,dlcNode,dlcOracle,dlcOracleTest,eclairRpc,lndRpc,lndRpcTest} from #5713 (#5721) 2024-10-17 15:41:43 -05:00
Chris Stewart
602725174f
Pull over simple syntax changes for scala3 pt2 (#5720)
* Pull over simple syntax changes for {nodeTest,keyManager,keyManagerTest,chainTest,bitcoind,bitcoindRpcTest,appServer,appServerTest,tor,zmq} from #5713

* Fix tor/compile
2024-10-17 14:14:32 -05:00
Chris Stewart
ab6d3f5cb7
Pull over simple syntax changes for scala3 libraries (#5719)
* Pull over simple syntax changes for {cryptTest,coreTest,testkitCore,appCommons} from #5713

* Fix case analysis in Picklers.scala
2024-10-17 13:00:33 -05:00
Chris Stewart
90203b295b
Use default play-json json serialization macros for bitcoind json classes that cause issues with scala3 (#5718) 2024-10-16 16:38:00 -05:00
omahs
982090ed21
Fix typos (#5714)
* fix typo

* fix typo

* fix typo

* fix typo
2024-10-16 14:05:12 -05:00
Scala Steward
b22e3d4aee
Update client3:core, ... to 3.10.1 (#5716) 2024-10-16 13:40:26 -05:00