Go to file
ahadda5 f4a6b90e8b
Mask credentials for logging (#8429)
* Added MaskCredentialsLogging to logutil, which masks the user info, path and query. It leaves the hostname and port untouched . Making it more secure during logging

* Added MaskCredentialsLogging to logutil, which masks the user info,path and query. It leaves the hostname and port untouched . Making it more secure during logging

* Added newline based on the PR checks

* Update shared/logutil/logutil.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>

* Gazelle

* Update shared/logutil/logutil.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>

* Update shared/logutil/logutil.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>

* added unit tests

* updated one test case

* added logutil_test.go unit test cases

* Refactor validator subnet subscriptions to be non-blocking (#8319)

* Use response.NextEpochDuties for aggregator subnet subscriptions (credit: @KaanKC PR #8204). Make committee subnet subscriptions method non-blocking call

* Fix test

* Fix test

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>

* Add Ability to Specify All Public Keys When Exiting Validators (#8399)

* add programmatic voluntary exit

* add exit all flag

* test

* lint

* add multiple exits test

* fix test

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>

* Increase Validation Queue (#8431)

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>

* Validator: add a DEBUG log to show batch attestation save duration (#8432)

* Add a debug log to show duration

* Autofix issues in 1 file

Resolved issues in validator/db/kv/attester_protection.go via DeepSource Autofix

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>

* Add Mutex and Block Profiling (#8435)

* Implement GetStateRoot in the beacon API (#8402)

* update ethereumapis dependency

* span

* initial implementation

* introduce stategen Service interface and MockService

* Include AddStateForSlot function in the mock service

* return states from mock

* add GenesisState to POWChain mock

* populate roots in helper state

* initialize Slot when creating helper state

* tests

* code refactor - extract helper functions

* gzl

* use SetSlot in tests

* handle SetSlot error

* use new testutil's NewBeaconState

* gzl

* go mod tidy

* rename Service to StateManager

* move regex check to helper

Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>

* On Block Cleanup (#8438)

* Beacon API: update GetStateRoot  (#8437)

* Address various feedbacks

* Gaz

* More nil check

* Update beacon-chain/rpc/beaconv1/state_test.go

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

* Update beacon-chain/rpc/beaconv1/state_test.go

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

* Update beacon-chain/rpc/beaconv1/state_test.go

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

* Update beacon-chain/rpc/beaconv1/state_test.go

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

* Update beacon-chain/rpc/beaconv1/state_test.go

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

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

* qualifying my unix user ahaddad - no real changes to the files

* Update shared/logutil/logutil.go

* Update shared/logutil/logutil.go

* Update shared/logutil/logutil.go

* Update shared/logutil/logutil.go

* Update shared/logutil/logutil.go

Co-authored-by: Preston Van Loon <preston@prysmaticlabs.com>
Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: terence tsao <terence@prysmaticlabs.com>
Co-authored-by: Raul Jordan <raul@prysmaticlabs.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
Co-authored-by: deepsource-autofix[bot] <62050782+deepsource-autofix[bot]@users.noreply.github.com>
Co-authored-by: Radosław Kapka <rkapka@wp.pl>
2021-02-15 21:54:19 +00:00
.github Fix Pull Request Template Language (#7738) 2020-11-05 20:46:28 +00:00
.well-known Update security.txt (#7956) 2020-11-25 17:38:35 +00:00
beacon-chain Mask credentials for logging (#8429) 2021-02-15 21:54:19 +00:00
contracts Fix Up READMEs for Mainnet (#7910) 2020-11-23 18:47:55 +00:00
endtoend ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
fuzz Configurable DB Mmap Size for Beacon Node and Validator Client (#8448) 2021-02-15 20:29:47 +00:00
proto ETH2 Types: Epoch (#8373) 2021-02-09 10:05:22 +00:00
scripts Coverage results upload fix for CI (#8255) 2021-01-12 20:12:09 +00:00
shared Mask credentials for logging (#8429) 2021-02-15 21:54:19 +00:00
slasher Code inspect - clean ups (#8445) 2021-02-12 17:04:45 -06:00
third_party Update Herumi with a fix for older intel chips (#8413) 2021-02-09 01:44:27 +00:00
tools Configurable DB Mmap Size for Beacon Node and Validator Client (#8448) 2021-02-15 20:29:47 +00:00
validator Configurable DB Mmap Size for Beacon Node and Validator Client (#8448) 2021-02-15 20:29:47 +00:00
.bazelrc Stamp binaries by default (#8292) 2021-01-19 20:43:30 +00:00
.bazelversion Update rules_go (#7202) 2020-11-10 03:01:56 +00:00
.buildkite-bazelrc Revert "Use remote cache in CI" (#8281) 2021-01-19 01:55:00 +00:00
.codecov.yml Update codecov to ignore generated code (#2794) 2019-06-12 10:45:17 -04:00
.deepsource.toml Add DeepSource for Bash Files (#7741) 2020-11-06 17:04:48 +00:00
.dockerignore Add tool and script for interop testing (#3417) 2019-09-09 17:31:19 -04:00
.gitattributes linguist-generated=true for mock and pb go files (#1465) 2019-02-02 17:25:28 -05:00
.gitignore Coverage results upload fix for CI (#8255) 2021-01-12 20:12:09 +00:00
.golangci.yml upgrading linter from gometalinter to golangci-lint (#2100) 2019-04-26 14:24:01 +08:00
.policy.yml Include Policy Bot Application (#7523) 2020-10-14 04:14:38 +00:00
.travis.yml Resolve Proto Lint Issues (#3044) 2019-07-22 14:10:17 -05:00
bazel.sh Update bazel.sh (#5028) 2020-03-06 17:43:06 +00:00
BUILD.bazel Prevent Usage of Stdlib File/Dir Writing With Static Analysis (#7685) 2020-11-09 14:27:03 -06:00
CONTRIBUTING.md Fix Up READMEs for Mainnet (#7910) 2020-11-23 18:47:55 +00:00
DEPENDENCIES.md Revert DEPENDENCIES.md change from #8257 (#8389) 2021-02-03 18:46:46 +00:00
deps.bzl Update ethereumapis deps (#8417) 2021-02-10 03:33:33 +00:00
go.mod Update ethereumapis deps (#8417) 2021-02-10 03:33:33 +00:00
go.sum Update ethereumapis deps (#8417) 2021-02-10 03:33:33 +00:00
interop.Dockerfile Add tool and script for interop testing (#3417) 2019-09-09 17:31:19 -04:00
INTEROP.md Update docs for keymanager (#4651) 2020-01-25 06:25:58 -08:00
LICENSE.md update to GPLv3 (#297) 2018-07-20 10:23:48 -05:00
nogo_config.json Prevent Usage of Stdlib File/Dir Writing With Static Analysis (#7685) 2020-11-09 14:27:03 -06:00
prysm.bat Fix for prysm.bat issue 'Validator' is not recognized as an internal or external command (#8097) 2021-01-04 23:27:38 +00:00
prysm.ps1 Various Powershell Fixes (#7854) 2020-11-20 17:17:38 +00:00
prysm.sh Do Not Recommend --ssl-no-revoke When Downloading Prysm Scripts (#7618) 2020-10-22 22:25:22 +00:00
README.md Update README.md (#8366) 2021-01-30 14:28:27 +00:00
service-account.json.enc Bazel cache for travis (#236) 2018-07-07 16:01:58 -04:00
TERMS_OF_SERVICE.md Update TERMS_OF_SERVICE.md (#7590) 2020-10-21 20:34:40 +00:00
WORKSPACE Update the Toolchain Registration (#8322) 2021-01-25 16:46:27 +00:00

Prysm: An Ethereum 2.0 Implementation Written in Go

Build status Go Report Card ETH2.0_Spec_Version 1.0.0 Discord

This is the core repository for Prysm, a Golang implementation of the Ethereum 2.0 specification, developed by Prysmatic Labs. See the Changelog for details of the latest releases and upcoming breaking changes.

Getting Started

A detailed set of installation and usage instructions as well as breakdowns of each individual component are available in the official documentation portal. If you still have questions, feel free to stop by our Discord.

Staking on Mainnet

To participate in staking, you can join the official eth2 launchpad. The launchpad is the only recommended way to become a validator on mainnet. You can explore validator rewards/penalties via Bitfly's block explorer: beaconcha.in, and follow the latest blocks added to the chain on beaconscan.

Contributing

Branches

Prysm maintains two permanent branches:

  • master: This points to the latest stable release. It is ideal for most users.
  • develop: This is used for development, it contains the latest PRs. Developers should base their PRs on this branch.

Guide

Want to get involved? Check out our Contribution Guide to learn more!

License

GNU General Public License v3.0

Terms of Use