Remove unused `get_attestation_custody_signature`

This commit is contained in:
Hsiao-Wei Wang 2020-08-11 12:48:13 +08:00
parent 1f767ca8b9
commit 7ce10dd210
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 0 additions and 13 deletions

View File

@ -193,19 +193,6 @@ def sign_indexed_attestation(spec, state, indexed_attestation):
indexed_attestation.signature = sign_aggregate_attestation(spec, state, data, participants)
def get_attestation_custody_signature(spec, state, attestation_data, block_index, bit, privkey):
domain = spec.get_domain(state, spec.DOMAIN_BEACON_ATTESTER, attestation_data.target.epoch)
signing_root = spec.compute_signing_root(
spec.AttestationCustodyBitWrapper(
attestation_data_root=attestation_data.hash_tree_root(),
block_index=block_index,
bit=bit,
),
domain,
)
return bls.Sign(privkey, signing_root)
def sign_attestation(spec, state, attestation):
participants = spec.get_attesting_indices(
state,