neededPubkeys data structure now in shared module