Commit Graph

65 Commits

Author SHA1 Message Date
Andrew Camilleri
49ae62b02e
Use library for Payjoin Sender (#2158)
* Use library for Payjoin Sender

* update payjoin sender to use new package and reduce code

* fix using statements
2021-03-01 22:44:53 +09:00
Dennis Reimann
83dd80ae86
Prevent access to wallet features if derivation scheme isn't set (#2196) 2021-01-16 19:48:05 +09:00
Kukks
179520a211 Plugins: Allow creation of independent DbContexts
This allows plugins to create custom dbcontexts, which would be namespaced in the scheme with a prefix. Migrations are supported too and the table would be prefixed too
2020-11-18 12:27:26 +01:00
Andrew Camilleri
4176f3659b
Add QR code scan/show for PSBT + Import wallet via QR (#1931)
* Add PSBT QR code scan/show

This PR introduces support to show and read PSBTs in BC-UR format via animated QR codes.  This allows you to use BTCPay with HW devices such as Cobo Vault and Blue wallet to sign transactions without ever exposing the keys outside of that device.
Spec: https://github.com/BlockchainCommons/Research/blob/master/papers/bcr-2020-005-ur.md
I've also bumped the QR code library we sue as it had a bug with large datasets.

* Reuse same code for all and allow wallet import via QR code scan

* remove unecessary js vendor files

* Allow export wallet from settings via QR

* formatting

* bundle

* fix wallet receive bundle
2020-10-21 14:03:11 +02:00
nicolas.dorier
0d8e2f0d4a
Fix bug: The wallet was sending only round amount of sat per byte 2020-09-03 17:27:51 +09:00
rockstardev
f88c02cccd Removing unused usings, readonly fields where possible 2020-06-28 22:07:48 -05:00
rockstardev
b6c7af32de Cleaning up bom from cs files 2020-06-28 21:44:35 -05:00
nicolas.dorier
51514252b6
Run dotnet format 2020-06-28 17:55:27 +09:00
nicolas.dorier
24a88fcfb5
Adapt payjoin for BIP78 2020-06-22 13:57:42 +09:00
Kukks
b7c65b2ba6 Add AlwaysIncludeNonWitnessUTXO to Wallet Send 2020-06-12 13:58:55 +02:00
nicolas.dorier
56283df05a
Can only sign with NBX if imported with NBX 2020-06-07 09:38:29 +09:00
nicolas.dorier
9e16b506e5
Small esthetic refacotring 2020-06-01 13:10:21 +09:00
nicolas.dorier
36630d9586
Randomize RBF if the user does not care 2020-05-25 19:46:42 +09:00
nicolas.dorier
7e5d269c39
Remove LedgerWallet direct integration 2020-05-25 07:41:30 +09:00
nicolas.dorier
cccf3ca617
The signing context should not be passed to PSBT screen 2020-05-25 07:05:01 +09:00
nicolas.dorier
77f6019d82
Use EnforceLowR suggestion of NBXplorer for signing 2020-05-25 06:34:49 +09:00
nicolas.dorier
35432d919c
Refactor common data structure for wallet into SigningContext 2020-05-25 06:29:06 +09:00
nicolas.dorier
25e6f82aa3
Refactor parameter passing in wallet functions 2020-05-25 04:55:28 +09:00
Andrew Camilleri
9d215ea27d
Reuse same html and handling of commands for PSBT signing/ Wallet Send (#1587)
* Reuse same html and handling of commands for PSBT signing/ Wallet Send

* fix ledger
2020-05-24 04:31:21 +09:00
nicolas.dorier
87352f0b62
Make sure wallet support decimal fee, and allow user to select different fee rate based on expected confirmation time 2020-05-05 19:10:53 +09:00
Kukks
53b0e675c3 Tag payjoin for sender too 2020-04-29 09:09:16 +02:00
nicolas.dorier
519f4af867
Bump pj original tx broadcast timeout 2020-04-29 00:23:51 +09:00
Remco
d4dbe6fe17
Typo fix (#1503) 2020-04-27 05:18:36 +09:00
Andrew Camilleri
92c58eea7f
Fix: Sign with NBX option not present after decoding PSBT (#1497) 2020-04-23 22:02:26 +09:00
nicolas.dorier
e3f6de8472
Remove warnings, replace BIP79 by Payjoin, Fix strange error in Accept loop 2020-04-09 20:25:17 +09:00
nicolas.dorier
b203d369fb
Fix payjoin tests 2020-04-08 18:24:04 +09:00
nicolas.dorier
d939baac84
Give more information to the user if payjoin fails 2020-04-06 13:19:51 +09:00
nicolas.dorier
fd026a9733
Refactor server-side 2020-04-05 12:02:36 +09:00
Kukks
4d2e59e1a1 Change flow of payjoin in wallet + fix tests 2020-03-30 13:27:04 +02:00
Kukks
64717328f6 check output sum of proposed payjoin 2020-03-27 10:45:13 +01:00
Kukks
065be9be64 Revert back to original transaction if payjoined tx does not work 2020-03-27 10:45:13 +01:00
Kukks
10fcfab233 remove bpu TempData 2020-03-27 10:45:13 +01:00
Kukks
59bae2c337 ToHashSet 2020-03-27 10:45:13 +01:00
Kukks
e4cb1a875b Remove tor client factory 2020-03-27 10:45:13 +01:00
Kukks
1a62ee9260 try fix tor socks5 connection 2020-03-27 10:45:12 +01:00
Kukks
56d5e6f99f fixes 2020-03-27 10:45:12 +01:00
Kukks
f1821636db fix tor client creator 2020-03-27 10:45:12 +01:00
Kukks
89da4184ff BIP79 Support 2020-03-27 10:45:12 +01:00
Kukks
d6c66d0c03 New feature: Coin Selection
This opt-in feature allows you to select which utxos you want to use for a specific transaction.
2020-03-19 09:44:47 +01:00
nicolas.dorier
a3e7729c52
Remove warnings 2020-02-24 22:12:50 +09:00
Andrew Camilleri
db6a4687d2
Wallet prep work for BPU (#1331)
* Wallet prep work for BPU

This PR prepares the wallet for #1321. It makes transfers from the vault and ledger to go to their own post actions for processing (not particularly useful in this PR but is needed in BPU to propose a new tx)  It also makes the Sign with seed consistent with redirect to /psbt/ready after signing which it did not do (it stayed on the seed route)

* fix test

* add assert
2020-02-13 22:06:00 +09:00
Andrew Camilleri
b42e4f240a Fix (#1301)
* Fix seed signing validation

* fix ident
2020-01-23 22:02:37 +09:00
nicolas.dorier
d0bfa67495
Fix build 2020-01-21 21:04:35 +09:00
Andrew Camilleri
8e6f43cd3a Sign with NBX Seed (#1218) 2020-01-21 17:33:12 +09:00
nicolas.dorier
5d7b253edd
Fix bug: Vault option now showing up in PSBT 2019-12-03 18:57:07 +09:00
nicolas.dorier
1a8d6e5c05
Implement BTCPayServer vault derivation scheme import 2019-11-21 14:06:16 +09:00
nicolas.dorier
5b37a9df0b
Make sure we don't pass the psbt in GET url 2019-11-08 21:21:23 +09:00
nicolas.dorier
aad586232c
Refactor StatusMessage and remove ExternalLogin 2019-10-31 14:11:33 +09:00
nicolas.dorier
281a2461ad
Refactor authorizations 2019-10-14 00:24:41 +09:00
nicolas.dorier
d9baea4c38
Remove global xpubs 2019-07-25 19:38:29 +09:00