prysm-pulse/beacon-chain
Shay Zluf d77c298ec6
Support authorised access to web 3 providers (#8075)
* jwt access token impl

* use secret or jwt

* rename

* separate method for splitting auth

* usage update

* Update beacon-chain/flags/base.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* Update beacon-chain/node/node.go

Co-authored-by: Radosław Kapka <rkapka@wp.pl>

* make things work

* removed unused code

* better, more flexible authorization

* move types and function to proper packages

* fix checking if endpoint is not set

* fix existing tests

* rename Endpoint field to Url

* Tests for HttpEndpoint

* better bearer auth

* tests for endpoint utils

* fix endpoint registration

* fix test build

* move endpoint parsing to powchain

* Revert "fix existing tests"

This reverts commit ceab192e6a78c106cf4e16a1bdf5399752a39890.

* fix field name in tests

* gzl

* add httputils dependency

* remove httputils dependency

* fix compilation issue in blockchain service test

* correct endpoint fallback function and tests

* gzl

* remove pointer from currHttpEndpoint

* allow whitespace in auth string

* endpoint equality

* correct one auth data Equals test case

* remove pointer receiver

Co-authored-by: Radosław Kapka <rkapka@wp.pl>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
2021-04-15 11:02:02 +00:00
..
blockchain Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
cache Break long lines in beacon chain package (#8686) 2021-03-30 11:24:46 +00:00
core Pass SlashValidator func as argument to ProcessProposer[Attester]Slashings (#8763) 2021-04-13 20:32:49 -05:00
db Fix typo in comment for LoadGenesis (#8685) 2021-03-30 00:45:14 +00:00
forkchoice Move chainheads to blockchain pkg (#8700) 2021-04-03 11:25:25 +00:00
gateway Use context timeout during gateway service shutdown (#8644) 2021-03-24 05:00:47 +00:00
interop-cold-start ProcessPreGenesisDeposits: Remove context.TODO() usage (#8705) 2021-04-05 15:07:56 +00:00
node Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
operations Embed Config Pattern For Attestation, POW Chain, and RPC Services (#8635) 2021-03-21 16:58:41 +00:00
p2p Disable Persisting Network Keys (#8735) 2021-04-13 16:25:35 +00:00
powchain Support authorised access to web 3 providers (#8075) 2021-04-15 11:02:02 +00:00
rpc Implement ListForkChoiceHeads in the debug API (#8675) 2021-04-14 17:01:24 +00:00
state Rebuild Trie After Reaching Limit (#8740) 2021-04-13 19:12:56 +00:00
sync ProcessPreGenesisDeposits: Remove context.TODO() usage (#8705) 2021-04-05 15:07:56 +00:00
BUILD.bazel Add Goland Standard "cmd" Pattern for Beacon-Chain Binaries (#8540) 2021-03-02 13:36:03 -06:00
README.md Fix Up READMEs for Mainnet (#7910) 2020-11-23 18:47:55 +00:00

Prysmatic Labs Beacon Chain Implementation

This is the main project folder for the beacon chain implementation of eth2 written in Go by Prysmatic Labs.

You can also read our main README and join our active chat room on Discord.

Discord

Also, read the official beacon chain specification, this design spec serves as a source of truth for the beacon chain implementation we follow at Prysmatic Labs.