Commit graph

2292 commits

Author SHA1 Message Date
nkohen
85dbf2fd80 Added secp256k1_schnorrsig_sign to JNI
Added secp256k1_schnorrsig_verify to the JNI

Added new schnorrSignWithNonce

Fixed schnorr signing and added a test making sure schnorrSign and schnorrSignWithNonce agree

Fixed binding, doesn't work yet

Added tests, they fail

Added BIP 340 test vectors

Implemented sigpoint computation using group operators. I believe the nonce is being incorrectly parsed half the time as it should not be treated as an xonly_pubkey

Added tests

Added Bouncy Castle implementation and further integration

Implemented bouncy castle fallback for all secp schnorr functions

Implemented FieldElement to abstract modular BigInt computations in the Secp256k1 field

Implemented sig in SchnorrDigitalSignature as a FieldElement

Vamped up testing

Added windows binaries

Added osx binaries

added windows binaries

Responded to review

Cleaned up secp commits

Responded to review

Replaced custom modInverse implementation in FieldElement with java.math.BigInteger.modInverse

Cleaned up a couple things for coverage purposes

Set bitcoin-s-schnorr to secp branch
2020-07-29 15:41:32 -05:00
Nadav Kohen
5b2ad821ad
Add low R signing (#1342)
* Added signing with entropy to the JNI and implemented low R signing

* Added check for determinism of low R signing

* Cleaned up test

* Implemented signing with entropy in Bouncy Castle

* Added docs for signing with entropy

* Fixed things after rebase

* De-parallelized signLowR and added scaladoc warnings to signWithEntropy
2020-07-29 15:03:18 -05:00
Nadav Kohen
7b8f17ade1
Added locks on start calls for loggers (#1713) 2020-07-29 10:12:49 -05:00
Ben Carman
728a4a841f
Fix Node Startup Issue (#1683)
* Fix Node Startup Issue

* Small fixes

* Add option to force chain work recalc
2020-07-29 09:37:20 -05:00
Ben Carman
383aaa7639
Remove need to parse every header in a blockchain on instantiation (#1704)
* Remove need to parse every header in a blockchain on instantiation

* Require height is descending

* Fix invariant
2020-07-29 07:25:24 -05:00
Scala Steward
89bb16a4e2
Update scodec-bits to 1.1.18 (#1716) 2020-07-29 07:07:18 -05:00
Ben Carman
d6ce8dee0b
Move Node type of out Wallet API (#1708)
* Move Node type of out wallet api

* Remove extensions, add scaladocs
2020-07-29 05:57:48 -05:00
Scala Steward
b521a0a659
Update sqlite-jdbc to 3.32.3.2 (#1718) 2020-07-29 05:56:18 -05:00
Nadav Kohen
dccc2b469c
Fixed getblockchaininfo for v19 (#1711) 2020-07-28 15:29:42 -05:00
Ben Carman
96ebf2b6a4
Wallet API remove app config (#1706) 2020-07-28 15:19:10 -05:00
Nadav Kohen
436396773d
Fix All Loggers! (#1695)
* Fixed logging so that appenders are always started when logging is happening

* Started rolling policy so that file appenders could start in getLoggerImpl
2020-07-28 07:13:38 -05:00
Ben Carman
d5a0bcd51e
Wallet API, widen key manager definition, remove unlock functions (#1705) 2020-07-28 07:02:15 -05:00
Ben Carman
68608199ce
Wallet API move execution context (#1707) 2020-07-28 07:00:59 -05:00
Ben Carman
4ef425d3cb
Add ProcessBlockTest (#1674) 2020-07-27 14:14:24 -05:00
Ben Carman
24f83d2802
Create HDWalletApi (#1693)
* Create HDWalletApi

* Rename createWallet to createHDWallet, add listDefaultAccountUtxos function

* Change return types to HDWalletApi

* Fix warning
2020-07-27 14:06:48 -05:00
Ben Carman
4b710dd0ca
Create getBlockchainsBetweenHeights for BlockHeaderDAO (#1703)
* Create getBlockchainsBetweenHeights for BlockHeaderDAO

* Use reconstructFromHeaders instead
2020-07-27 13:14:29 -05:00
Chris Stewart
6a1e4aea01
Add .transactionally to CRUD.updateAll(), CRUD.upsertAll(), CRUDAutoInc.createAll() (#1698) 2020-07-25 16:47:04 -05:00
Ben Carman
8102fde681
Move function defs from wallet api to wallet (#1694) 2020-07-25 16:37:48 -05:00
Ben Carman
5a75b326f4
Shuffle Finalizer Tests + bug fix (#1680) 2020-07-23 11:14:53 -05:00
dependabot[bot]
f1abe8a47d
Bump lodash from 4.17.15 to 4.17.19 in /website (#1681)
Bumps [lodash](https://github.com/lodash/lodash) from 4.17.15 to 4.17.19.
- [Release notes](https://github.com/lodash/lodash/releases)
- [Commits](https://github.com/lodash/lodash/compare/4.17.15...4.17.19)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-07-23 09:10:08 -05:00
Scala Steward
533e511aeb
Update scalamock to 5.0.0 (#1684) 2020-07-22 06:26:24 -05:00
Scala Steward
56bb7a4994
Update javafx-base, javafx-controls, ... to 14.0.2.1 (#1685) 2020-07-22 06:10:49 -05:00
Ben Carman
c64a590d1a
Skip downloadBlocks if given an empty Vector (#1690) 2020-07-21 13:59:07 -05:00
Chris Stewart
674c376dd7
Move where we call wallet.start() and node.start() to the same place to avoid initializaiton issue 1687 (#1689) 2020-07-21 12:04:29 -05:00
Ben Carman
0ee735424c
Start server before sync (#1682)
* Start server before sync

* Move promise call
2020-07-19 10:40:36 -05:00
Ben Carman
3a1f3d3497
Unreserve spent utxos (#1676) 2020-07-19 10:40:09 -05:00
Nadav Kohen
54c02e570c
Fixed getAddressInfo for versions 18 and 19 (#1679) 2020-07-17 13:20:36 -05:00
Ben Carman
7abca65ac4
Create ShuffleFinalizer (#1660) 2020-07-16 16:09:26 -05:00
Ben Carman
18c931e210
Create BIP 69 finalizer (#1661) 2020-07-16 11:37:43 -05:00
Ben Carman
c6f1dcf6fe
Fix CoinSelector for KiloX fee rates (#1664) 2020-07-16 10:18:22 -05:00
Scala Steward
bb7786d433
Update akka-actor, akka-stream, ... to 2.6.8 (#1677) 2020-07-16 06:08:31 -05:00
Ben Carman
407c19bf01
Enforce unique outpoints for SpendingInfoDb (#1673) 2020-07-15 14:09:44 -05:00
Scala Steward
73efd127f5
Update sqlite-jdbc to 3.32.3.1 (#1671) 2020-07-15 13:32:59 -05:00
Ben Carman
9ed795718f
Let Wallet find utxos by state (#1668) 2020-07-15 13:07:55 -05:00
Nadav Kohen
8830eddda1
Segwit Signing Bug Fix (#1670)
* Various signing improvements and a fix for badly rebuilt segwit scripts when signing

* Responded to review
2020-07-14 16:15:12 -05:00
Chris Stewart
5b385fdd17
Bump scala 2.12 compiler to 2.12.12 (#1669)
* Bump scala 2.12 compiler to 2.12.12

* Bump travis scalac version
2020-07-14 10:44:10 -05:00
Ben Carman
15ddc74c25
Random Coin Selection (#1663) 2020-07-14 10:12:05 -05:00
Ben Carman
38c80d7890
Implemenet BitGo fee provider (#1662)
* Implemenet BitGo fee provider

* Add API docs link
2020-07-14 07:18:20 -05:00
Ben Carman
c65338feb6
Remove need for wallet from BroadcastTransactionTest (#1666)
* Remove need for wallet from BroadcastTransactionTest

* Move balance call, remove extra broadcast call
2020-07-13 14:03:29 -05:00
Ben Carman
088d9cb3d0
Add signrawtxwithwallet bitcoind function (#1665) 2020-07-13 09:44:44 -05:00
Chris Stewart
2d8ad5b14e
Remove the akka boiler plate needed to get around issue 1508 (#1657) 2020-07-10 12:39:43 -05:00
Scala Steward
e9ec643daa
Update akka-actor, akka-stream, ... to 2.6.7 (#1656) 2020-07-10 10:37:52 -05:00
Ben Carman
8b85751b46
Give more descriptive error when there are no peers set (#1652) 2020-07-09 15:28:47 -05:00
Ben Carman
03da22b391
Fix length of BigIntMapper (#1651)
* Fix length of BigIntMapper

* Fix for max value uint256
2020-07-09 14:44:55 -05:00
Ben Carman
cfdee8492e
Run only docs CI for PRs that start with Docs: (#1643)
* Docs: Run only docs CI for PRs that start with Docs:

* dOcS: ignore case
2020-07-09 10:52:21 -05:00
Scala Steward
1970f756fc
Update sbt-native-packager to 1.7.4 (#1644) 2020-07-08 15:00:32 -05:00
Ben Carman
4b03dcc4fa
Fix nightly build docs section (#1639) 2020-07-08 14:45:42 -05:00
Ben Carman
8ba3a79787
Use One click install in docs (#1640) 2020-07-08 14:43:53 -05:00
Ben Carman
c2fa7d7cc8
Address Tagging Attempt 2 (#1320)
* Address & UTXO tagging

* Fix docs

* Remove useless function, improve docs

* Fix rebase errors

* Rebase fixes

* Fix docs

* Fix small test errors

* Fix Postgres migration

* Fix postgres
2020-07-08 14:38:39 -05:00
Ben Carman
e3938544ed
Fee Provider Docs (#1641) 2020-07-08 10:22:59 -05:00