@@ -766,13 +766,13 @@ def test_generate_aggregate_pubkeys(genesis_validators, sample_slashable_vote_da
766
766
max_value = max_value_for_list ,
767
767
)
768
768
)
769
- proof_of_custody_0_indices = indices [:some_index ]
770
- proof_of_custody_1_indices = indices [some_index :]
769
+ custody_bit_0_indices = indices [:some_index ]
770
+ custody_bit_1_indices = indices [some_index :]
771
771
772
- key = "aggregate_signature_poc_0_indices "
773
- sample_slashable_vote_data_params [key ] = proof_of_custody_0_indices
774
- key = "aggregate_signature_poc_1_indices "
775
- sample_slashable_vote_data_params [key ] = proof_of_custody_1_indices
772
+ key = "custody_bit_0_indices "
773
+ sample_slashable_vote_data_params [key ] = custody_bit_0_indices
774
+ key = "custody_bit_1_indices "
775
+ sample_slashable_vote_data_params [key ] = custody_bit_1_indices
776
776
777
777
votes = SlashableVoteData (** sample_slashable_vote_data_params )
778
778
@@ -781,8 +781,8 @@ def test_generate_aggregate_pubkeys(genesis_validators, sample_slashable_vote_da
781
781
782
782
(poc_0_key , poc_1_key ) = keys
783
783
784
- poc_0_keys = get_pubkey_for_indices (genesis_validators , proof_of_custody_0_indices )
785
- poc_1_keys = get_pubkey_for_indices (genesis_validators , proof_of_custody_1_indices )
784
+ poc_0_keys = get_pubkey_for_indices (genesis_validators , custody_bit_0_indices )
785
+ poc_1_keys = get_pubkey_for_indices (genesis_validators , custody_bit_1_indices )
786
786
787
787
assert bls .aggregate_pubkeys (poc_0_keys ) == poc_0_key
788
788
assert bls .aggregate_pubkeys (poc_1_keys ) == poc_1_key
@@ -791,13 +791,13 @@ def test_generate_aggregate_pubkeys(genesis_validators, sample_slashable_vote_da
791
791
@given (st .data ())
792
792
def test_verify_vote_count (max_casper_votes , sample_slashable_vote_data_params , data ):
793
793
(indices , some_index ) = _list_and_index (data , max_size = max_casper_votes )
794
- proof_of_custody_0_indices = indices [:some_index ]
795
- proof_of_custody_1_indices = indices [some_index :]
794
+ custody_bit_0_indices = indices [:some_index ]
795
+ custody_bit_1_indices = indices [some_index :]
796
796
797
- key = "aggregate_signature_poc_0_indices "
798
- sample_slashable_vote_data_params [key ] = proof_of_custody_0_indices
799
- key = "aggregate_signature_poc_1_indices "
800
- sample_slashable_vote_data_params [key ] = proof_of_custody_1_indices
797
+ key = "custody_bit_0_indices "
798
+ sample_slashable_vote_data_params [key ] = custody_bit_0_indices
799
+ key = "custody_bit_1_indices "
800
+ sample_slashable_vote_data_params [key ] = custody_bit_1_indices
801
801
802
802
votes = SlashableVoteData (** sample_slashable_vote_data_params )
803
803
@@ -821,15 +821,15 @@ def _correct_slashable_vote_data_params(params, validators, messages, privkeys):
821
821
822
822
num_validators = len (validators )
823
823
824
- key = "aggregate_signature_poc_0_indices "
824
+ key = "custody_bit_0_indices "
825
825
(poc_0_indices , poc_0_signatures ) = _get_indices_and_signatures (
826
826
num_validators ,
827
827
messages [0 ],
828
828
privkeys ,
829
829
)
830
830
valid_params [key ] = poc_0_indices
831
831
832
- key = "aggregate_signature_poc_1_indices "
832
+ key = "custody_bit_1_indices "
833
833
# NOTE: does not guarantee non-empty intersection
834
834
(poc_1_indices , poc_1_signatures ) = _get_indices_and_signatures (
835
835
num_validators ,
@@ -857,7 +857,7 @@ def _corrupt_signature(params):
857
857
858
858
def _corrupt_vote_count (params ):
859
859
params = copy .deepcopy (params )
860
- key = "aggregate_signature_poc_0_indices "
860
+ key = "custody_bit_0_indices "
861
861
for i in itertools .count ():
862
862
if i not in params [key ]:
863
863
params [key ].append (i )
0 commit comments