directory
Version:
v0.24.6
Opens a new window with list of versions in this module.
Published: Jun 7, 2024
License: AGPL-3.0
Opens a new window with license information.
README
¶
This package contains a fork of the rpc stack from go-ethereum.
We need to change it, to add a custom authentication mechanism.
The RPC URL to the Ten Gateway contains a "token" URL parameter kept secret by every user, which we use for authentication.
- Create an http service:
extract_params_handler.go
which extracts it and adds it to the Context
- From the Context, it can be read by the http rpc handler
- For WS, we need to add it to a couple of more objects to make it available during processing.
- Removed unnecessary elements from the "node", such as p2p, database, etc
- Enable full duplex to enable keep-alive connections
Directories
¶
Package debug interfaces Go runtime debugging facilities.
|
Package debug interfaces Go runtime debugging facilities. |
|
|
|
|
Package node sets up multi-protocol Ethereum nodes.
|
Package node sets up multi-protocol Ethereum nodes. |
Package rpc implements bi-directional JSON-RPC 2.0 on multiple transports.
|
Package rpc implements bi-directional JSON-RPC 2.0 on multiple transports. |
Click to show internal directories.
Click to hide internal directories.