Torkel Rogstad
454808abea
Add TX generators that pay to a given SPK
2019-06-27 15:28:08 +02:00
Torkel Rogstad
06b8375c81
Add ProcessTransactionTest
2019-06-27 15:28:08 +02:00
Torkel Rogstad
5a04260461
Update wallet integration tests
2019-06-27 15:28:08 +02:00
Torkel Rogstad
1eb80d82a1
Get rid of compiler warnings
2019-06-27 15:28:08 +02:00
Torkel Rogstad
e2ffba5d40
Add getUnconfirmedBalance to wallet
2019-06-27 15:28:08 +02:00
Torkel Rogstad
f5591f3c0f
Replace addUtxo with processTransaction
...
In this commit we replace addUtxo with
processTransaction in the wallet API. addUtxo
is kept around, but only as an internal
implementation detail.
The new flow looks like this:
1) The wallet gets notified about a new TX
through a processTransaction call
2) It then searches through our already
processed incoming TXs:
if found, updates the confirmation
status
else, inserts it into the DB
3) We then call addUtxo, if the previous
step resulted in a new TX in our
DB
2019-06-27 15:28:08 +02:00
Torkel Rogstad
79b7455b38
Move ID in UTXO DB models for more ergonomic functions
2019-06-27 15:28:08 +02:00
Torkel Rogstad
5513344373
Add findTx to IncomingTxDAO
2019-06-27 15:28:08 +02:00
Torkel Rogstad
e2278f7606
Get UTXO DB unit tests passing
2019-06-27 15:28:08 +02:00
Torkel Rogstad
88e318d485
Move WalletDAOs to testkit
2019-06-27 15:28:08 +02:00
Torkel Rogstad
b630cfbf5c
Generalize DAO fixture for wallet
2019-06-27 15:28:08 +02:00
Torkel Rogstad
ff5b1c25f1
Add foreign key on UTXOs to incoming transactions
2019-06-27 15:28:08 +02:00
Torkel Rogstad
fd0af6fd20
Add tx tables to WalletDbManagement
2019-06-27 15:28:08 +02:00
Torkel Rogstad
b3600f4888
DB loggers exposed in logging configuration
2019-06-27 15:28:08 +02:00
Torkel Rogstad
75bf52a431
Add toAddress on HDChain
2019-06-27 15:28:08 +02:00
Torkel Rogstad
4435d942d9
Create DBs transactionally
2019-06-27 15:28:08 +02:00
Torkel Rogstad
bdd0468383
Add tables for incoming and outgoing transactions
2019-06-27 15:28:08 +02:00
Torkel Rogstad
e4e9ec9db9
Add SPK field to AddressTable
2019-06-27 15:23:23 +02:00
Torkel Rogstad
13deceab30
Move utxos into wallet test util
2019-06-27 15:23:23 +02:00
Torkel Rogstad
db1987b36a
Merge pull request #546 from torkelrogstad/2019-06-21-aes-cfb
...
Use key based encryption in AesCrypt
2019-06-27 12:16:53 +02:00
Torkel Rogstad
da9fa4d385
Move util function into test where it's used'
2019-06-27 11:22:02 +02:00
Torkel Rogstad
66524f8c43
Respond to code review from Chris
2019-06-26 17:24:50 +02:00
Torkel Rogstad
000fe1e2ef
Merge pull request #431 from nkohen/coin-selection
...
Basic Coin Selection
2019-06-26 13:13:27 +02:00
Torkel Rogstad
927744ce9c
Add XSource:2.12 flag
2019-06-26 11:27:58 +02:00
Torkel Rogstad
da8c6d0f4b
Use explicit constructor for creating AesSalt
...
This fixes a stack overflow bug where calling
fromBytes called .apply(ByteVector) which called
fromBytes which etc...
2019-06-26 11:26:38 +02:00
Torkel Rogstad
017fad25b1
Merge pull request #547 from cwaldron97/2019-06-21_Siphashkey
...
SipHashKey
2019-06-25 18:59:31 +02:00
Torkel Rogstad
bac49ec1d8
Add more tests to AesCryptTest, fix doc string
2019-06-25 18:55:22 +02:00
Torkel Rogstad
09caeb4854
Merge pull request #516 from torkelrogstad/2019-06-12-trezor-test
...
Generate test vectors from Trezor
2019-06-25 13:08:49 +02:00
Torkel Rogstad
505d3cbaa1
Fix Scala 2.11 complaints
2019-06-25 11:58:18 +02:00
Torkel Rogstad
1b2a959d54
Make AesSalt a factory object
2019-06-25 11:39:20 +02:00
Torkel Rogstad
161db9ff92
Add toBase64/fromBase64 to AesEncryptedData
2019-06-25 11:39:17 +02:00
cwaldron97
4345ddbb1e
fixed compiler errors
2019-06-24 15:50:51 -05:00
Nadav Kohen
95dad1fc1d
Made GolombFilter extend NetworkElement ( #549 )
2019-06-24 14:43:04 -05:00
cwaldron97
a457717eb4
scalafmt
2019-06-24 14:12:47 -05:00
cwaldron97
4288014f68
Changes applied from PR Review
2019-06-24 11:51:50 -05:00
Torkel Rogstad
334d410220
Fix CoinSelectorTest after rebase
2019-06-24 17:45:31 +02:00
nkohen
269d3c8f21
Implemented simple greedy coin selection
...
Added tests for current coin selection algorithm options
Responded to code review
Implemented fee estimation calculation in coin selection
Updated tests after rebase
Fixed CoinSelectorTest
Fixed CoinSelectorTest after rebase
2019-06-24 17:41:43 +02:00
Torkel Rogstad
77d056e5fa
Add REPL.it link to AesCryptTest
2019-06-24 17:37:03 +02:00
Torkel Rogstad
f93b8cadbe
Update wallet project to work new AES changes
2019-06-24 17:25:11 +02:00
Torkel Rogstad
d58f3dc715
Update AesCrypt to work with keys
...
In this commit we update our AesCrypt
functionality to work with AES keys rather
than passphrases that are extended to keys.
This makes it easier to integrate with other
languages, as the key stretching introduces
a bunch of additional parameters to the
actual AES encryption.
We also include tests that verify that we're
able to encrypt/decrypt using Bitcoin-S,
Crypto-JS (JavaScript), pycrypto (Python)
and OpenSSL CLI.
2019-06-24 17:21:41 +02:00
cwaldron97
5ccc025f2e
added .map to have SipHashKey Constructor
2019-06-21 17:08:33 -05:00
cwaldron97
0e97ff6ed4
fixed GCSTest file
2019-06-21 16:53:41 -05:00
cwaldron97
276a6701f6
fixed all compiler errors and warning
2019-06-21 16:06:44 -05:00
cwaldron97
bea1cd04fb
fixing compilation errors
2019-06-21 15:40:39 -05:00
cwaldron97
67683a7131
added ByteVector import statement
2019-06-21 15:08:47 -05:00
cwaldron97
934e89e662
fixed toArray def
2019-06-21 14:54:58 -05:00
cwaldron97
9aa0c7bc1c
SipHashKey case class added
2019-06-21 14:48:47 -05:00
Torkel Rogstad
1f363b4586
Merge pull request #545 from torkelrogstad/2019-06-21-ga
...
Add GA tag
2019-06-21 09:54:52 +02:00
Torkel Rogstad
255f016585
Add GA tag
2019-06-21 09:53:14 +02:00
Torkel Rogstad
5cb439df57
Merge pull request #544 from bitcoin-s/torkelrogstad-patch-1
...
Update bug report template
2019-06-20 18:39:10 +02:00