def mk_pending_attestation_from_committee(parent: Crosslink, committee_size: int, shard: Shard, target_epoch: Epoch=default_epoch, target_root: Hash32=ZERO_HASH32, data_root: Hash32=ZERO_HASH32) -> PendingAttestation:
    bitfield = get_empty_bitfield(committee_size)
    for i in range(committee_size):
        bitfield = set_voted(bitfield, i)
    return _mk_pending_attestation(bitfield=bitfield, target_root=target_root, target_epoch=target_epoch, shard=shard, start_epoch=parent.end_epoch, parent_root=parent.hash_tree_root, data_root=data_root)
def mk_pending_attestation_from_committee(parent: Crosslink, committee_size: int, shard: Shard, target_epoch: Epoch=default_epoch, target_root: Hash32=ZERO_HASH32, data_root: Hash32=ZERO_HASH32) -> PendingAttestation:
    bitfield = get_empty_bitfield(committee_size)
    for i in range(committee_size):
        bitfield = set_voted(bitfield, i)
    return _mk_pending_attestation(bitfield=bitfield, target_root=target_root, target_epoch=target_epoch, shard=shard, start_epoch=parent.end_epoch, parent_root=parent.hash_tree_root, data_root=data_root)