pub fn check_and_insert_attestation(
        &self,
        validator_pubkey: &PublicKeyBytes,
        attestation: &AttestationData,
        domain: Hash256,
    ) -> Result<Safe, NotSafe> {
        let attestation_signing_root = attestation.signing_root(domain).into();
        self.check_and_insert_attestation_signing_root(
            validator_pubkey,
            attestation.source.epoch,
            attestation.target.epoch,
            attestation_signing_root,
        )
    }
/// Check an attestation for slash safety, and if it is safe, record it in the database.
///
/// The checking and inserting happen atomically and exclusively. We enforce exclusivity
/// to prevent concurrent checks and inserts from resulting in slashable data being inserted.
///
/// This is the safe, externally-callable interface for checking attestations.
Check an attestation for slash safety, and if it is safe, record it in the database.
The checking and inserting happen atomically and exclusively. We enforce exclusivity
to prevent concurrent checks and inserts from resulting in slashable data being inserted.

This is the safe, externally-callable interface for checking attestations.
Check an attestation for slash safety and if it is safe record it in the database . The checking and inserting happen atomically and exclusively . We enforce exclusivity to prevent concurrent checks and inserts from resulting in slashable data being inserted . This is the safe externally - callable interface for checking attestations .
pub fn check_and_insert_attestation(
        &self,
        validator_pubkey: &PublicKeyBytes,
        attestation: &AttestationData,
        domain: Hash256,
    ) -> Result<Safe, NotSafe> {
        let attestation_signing_root = attestation.signing_root(domain).into();
        self.check_and_insert_attestation_signing_root(
            validator_pubkey,
            attestation.source.epoch,
            attestation.target.epoch,
            attestation_signing_root,
        )
    }
pub fn check_and_insert_attestation ( & self , validator_pubkey : & PublicKeyBytes , attestation : & AttestationData , domain : Hash256 , ) -> Result < Safe , NotSafe > { let attestation_signing_root = attestation . signing_root ( domain ) . into ( ) ; self . check_and_insert_attestation_signing_root ( validator_pubkey , attestation . source . epoch , attestation . target . epoch , attestation_signing_root , ) }
Check an attestation for slash safety, and if it is safe, record it in the database.
Check an attestation for slash safety and if it is safe record it in the database .
&self
validator_pubkey
&PublicKeyBytes
attestation
&AttestationData
domain
Hash256