@@ -766,13 +766,13 @@ def test_generate_aggregate_pubkeys(genesis_validators, sample_slashable_vote_da
766766 max_value = max_value_for_list ,
767767 )
768768 )
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 :]
771771
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
776776
777777 votes = SlashableVoteData (** sample_slashable_vote_data_params )
778778
@@ -781,8 +781,8 @@ def test_generate_aggregate_pubkeys(genesis_validators, sample_slashable_vote_da
781781
782782 (poc_0_key , poc_1_key ) = keys
783783
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 )
786786
787787 assert bls .aggregate_pubkeys (poc_0_keys ) == poc_0_key
788788 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
791791@given (st .data ())
792792def test_verify_vote_count (max_casper_votes , sample_slashable_vote_data_params , data ):
793793 (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 :]
796796
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
801801
802802 votes = SlashableVoteData (** sample_slashable_vote_data_params )
803803
@@ -821,15 +821,15 @@ def _correct_slashable_vote_data_params(params, validators, messages, privkeys):
821821
822822 num_validators = len (validators )
823823
824- key = "aggregate_signature_poc_0_indices "
824+ key = "custody_bit_0_indices "
825825 (poc_0_indices , poc_0_signatures ) = _get_indices_and_signatures (
826826 num_validators ,
827827 messages [0 ],
828828 privkeys ,
829829 )
830830 valid_params [key ] = poc_0_indices
831831
832- key = "aggregate_signature_poc_1_indices "
832+ key = "custody_bit_1_indices "
833833 # NOTE: does not guarantee non-empty intersection
834834 (poc_1_indices , poc_1_signatures ) = _get_indices_and_signatures (
835835 num_validators ,
@@ -857,7 +857,7 @@ def _corrupt_signature(params):
857857
858858def _corrupt_vote_count (params ):
859859 params = copy .deepcopy (params )
860- key = "aggregate_signature_poc_0_indices "
860+ key = "custody_bit_0_indices "
861861 for i in itertools .count ():
862862 if i not in params [key ]:
863863 params [key ].append (i )
0 commit comments