dcrd/internal/rpcserver
Josh Rickmar ced647dbcf
rpcserver: Hash auth using random-keyed MAC.
This commit replaces the SHA256 hash of the HTTP Basic Authorization
header with HMAC-SHA256.  The MAC is performed using a random key read
from the cryptographically random source at server creation.

Storing the authentication details with a MAC unique to each startup
hardens the server against certain classes of memory dumping attacks.

While here, a server field that must be accessed atomically was moved
to the top of the structure, to reduce the likelihood of misaligned
access on architectures where that is forbidden.
2020-12-02 13:04:27 -06:00
..
testdata rpcserver: Add handleSearchRawTransactions tests. 2020-08-29 22:03:04 -05:00
doc.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
interface.go multi: Start gcs v3 module dev cycle. 2020-11-10 16:51:38 -06:00
log.go rpcserver: Add logging to internal package. 2019-10-24 21:37:27 -05:00
README.md rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver_test.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserver.go rpcserver: Hash auth using random-keyed MAC. 2020-12-02 13:04:27 -06:00
rpcserverhandlers_test.go rpcserver: Correct treasury vote status handling. 2020-11-21 20:21:51 -06:00
rpcserverhelp_test.go rpcserver: Move to internal. 2020-07-24 23:29:59 -05:00
rpcserverhelp.go multi: Add tx inputs treasuryspend RPC support. 2020-11-24 04:27:07 -06:00
rpcwebsocket.go rpcserver: Correct treasury vote status handling. 2020-11-21 20:21:51 -06:00
treasury_test.go multi: Start rpcclient v7 module dev cycle. 2020-11-10 16:51:38 -06:00

rpcserver

Build Status ISC License Doc

Overview

Package rpcserver includes all RPC server interfaces, types, and pieces of code pertaining to implementing the RPC server.

License

Package rpcserver is licensed under the copyfree ISC License.