prysm-pulse/beacon-chain/state/v1
Preston Van Loon c1197d7881
Add static analysis for unsafe uint casting (#10318)
* Add static analysis for unsafe uint casting

* Fix violations of uintcast

* go mod tidy

* Add exclusion to nogo for darwin build

* Add test for math.Int

* Move some things to const so they are assured not to exceed int64

* Self review

* lint

* fix tests

* fix test

* Add init check for non 64 bit OS

* Move new deps from WORKSPACE to deps.bzl

* fix bazel build for go analysis runs

* Update BUILD.bazel

Remove TODO

* add math.AddInt method

* Add new test casts

* Add case where builtin functions and declared functions are covered

* Fix new findings

* cleanup

Co-authored-by: prylabs-bulldozer[bot] <58059840+prylabs-bulldozer[bot]@users.noreply.github.com>
Co-authored-by: Nishant Das <nishdas93@gmail.com>
2022-03-11 09:34:30 +00:00
..
BUILD.bazel Native state feature flag (#10232) 2022-02-14 12:33:02 +00:00
doc.go Beacon State V2 Interface Definition With Semantic Version Paths (#9125) 2021-06-30 15:06:19 +00:00
field_roots.go Remove SSZ Cache (#10256) 2022-02-22 17:27:51 +08:00
getters_attestation_test.go Move Shared/Testutil into Testing (#9659) 2021-09-23 18:53:46 +00:00
getters_attestation.go Refactor States To Allow for Single Cached Hasher (#9922) 2021-11-29 16:30:17 +00:00
getters_block_test.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
getters_block.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_checkpoint.go Remove copyutil pkg, move v1alpha1 copy methods into v1alpha1 pkg (#9533) 2021-09-04 06:55:57 +00:00
getters_eth1.go Refactor States To Allow for Single Cached Hasher (#9922) 2021-11-29 16:30:17 +00:00
getters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_randao.go Create Encoding Bytesutil (#9658) 2021-09-23 15:23:37 +00:00
getters_state.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_test.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
getters_validator_test.go Refactor for DRY state getters_validator_test and getters_test (#10117) 2022-02-11 14:48:29 +08:00
getters_validator.go Add static analysis for unsafe uint casting (#10318) 2022-03-11 09:34:30 +00:00
proofs_test.go Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs (#10032) 2022-01-11 17:36:03 +08:00
proofs.go Initialize Merkle Layers and Recompute Dirty Fields in BeaconState Proofs (#10032) 2022-01-11 17:36:03 +08:00
readonly_validator_test.go Use fieldparams for BLS public key (#10042) 2022-01-06 17:33:08 +00:00
readonly_validator.go Use fieldparams for BLS public key (#10042) 2022-01-06 17:33:08 +00:00
references_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
setters_attestation_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
setters_attestation.go Use Static Sizes for State Fields (#10007) 2021-12-13 10:16:23 +01:00
setters_block.go Remove copyutil pkg, move v1alpha1 copy methods into v1alpha1 pkg (#9533) 2021-09-04 06:55:57 +00:00
setters_checkpoint.go Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
setters_eth1.go Move v1alpha1 into Prysm API namespace (#9245) 2021-07-21 21:34:07 +00:00
setters_misc.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
setters_randao.go Beacon State V2 Interface Definition With Semantic Version Paths (#9125) 2021-06-30 15:06:19 +00:00
setters_state.go Split state package into state-proto and state-native (#10069) 2022-01-13 12:23:53 +01:00
setters_validator.go Add Balance Field Trie (#9793) 2021-11-19 20:01:15 +08:00
state_test.go Use beacon state interfaces instead of concrete structs (#10195) 2022-02-08 09:30:06 +00:00
state_trie_test.go Integration of Vectorized Sha256 In Prysm (#10166) 2022-02-28 21:56:12 +08:00
state_trie.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
types_test.go Use fieldparams for BLS public key (#10042) 2022-01-06 17:33:08 +00:00
types.go Unify GenesisValidator(s)Root throughout the codebase (#10230) 2022-02-14 13:34:38 +00:00
unsupported_getters.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00
unsupported_setters.go Code cleanup (#9992) 2021-12-07 17:52:39 +00:00