Jamie Holdstock
ac488464c0
Rework client/server authentication. ( #58 )
...
* Rework client/server authentication.
- Remove Signature from all requests, and instead expect a signature in HTTP header "VSP-Client-Signature".
- Remove CommitmentSignatures from the database.
- Use a bool flag to indicate when a ticket is missing from the database rather than an error.
This commit introduces a lot of duplication into each of the authenticated HTTP handlers. This should be removed in future work which moves the authentication to a dedicated middleware.
* Introduce auth and rpc middleware.
This removed the duplication added in the previous commit, and also removes the duplication of RPC client error handling.
2020-05-26 14:14:38 +01:00
Jamie Holdstock
1ff55f4b30
Add some stats to homepage ( #51 )
2020-05-22 18:43:41 +01:00
Jamie Holdstock
96608718a0
Cleaning up some TODOs ( #50 )
2020-05-22 18:42:51 +01:00
Jamie Holdstock
740b9c8e0f
Get relay fee from wallet ( #47 )
2020-05-22 15:09:51 +01:00
Jamie Holdstock
68e3fca59c
Add context to RPC wrapper ( #53 )
2020-05-22 14:58:28 +01:00
Jamie Holdstock
869b68fad5
Split voting wallet and fee wallet clients ( #45 )
2020-05-22 07:54:09 +01:00
Jamie Holdstock
bb416e8bc9
Set vote choices on voting wallets ( #43 )
2020-05-21 07:59:51 +01:00
Jamie Holdstock
bd518d7e24
Split methods.go ( #39 )
2020-05-20 15:37:01 +01:00
Jamie Holdstock
72fc9afa40
Config for web server release/debug mode ( #40 )
2020-05-20 15:31:10 +01:00
Jamie Holdstock
36c748ba12
Import xpub tweaks ( #41 )
2020-05-20 15:18:24 +01:00
Jamie Holdstock
00525f4d53
Validate votebits in payfee ( #37 )
2020-05-20 08:09:18 +01:00
Jamie Holdstock
cf55092c21
Add ticket hash to payfee request. ( #38 )
2020-05-20 08:09:07 +01:00
Jamie Holdstock
d31c24b531
Add missing tests and log errors. ( #36 )
2020-05-19 17:21:40 +01:00
David Hill
f50b0aba56
cleanup payfee ( #35 )
2020-05-19 16:53:11 +01:00
David Hill
80e7983d4e
add in expiration logic ( #31 )
2020-05-19 16:13:48 +01:00
Jamie Holdstock
5c1c19844c
Error logging for API methods ( #28 )
2020-05-19 10:55:25 +01:00
David Hill
302abce2fc
database: rename GetFeesByFeeAddress to GetTicketByFeeAddress ( #30 )
2020-05-19 10:54:06 +01:00
David Hill
c9fca9bb0e
Get votebits from DB ( #29 )
2020-05-19 10:51:18 +01:00
Jamie Holdstock
e70bb206c3
Generalize database accessor. ( #24 )
2020-05-18 15:20:29 +01:00
Jamie Holdstock
04311000e8
Move web assets under webapi package. ( #26 )
2020-05-18 15:20:13 +01:00
Jamie Holdstock
7dbee5b6c2
Add dcrwallet RPC client ( #25 )
2020-05-18 15:19:35 +01:00
Jamie Holdstock
6ca2f620b7
Use a waitgroup to wait for shutdown tasks ( #21 )
2020-05-18 09:05:10 +01:00