pub(crate) mod aggregate_hash;
pub(crate) mod fingerprint;
pub(crate) mod hash_parts;
pub(crate) mod projection_hash;
mod shape_signature;
#[cfg(test)]
mod tests;
use crate::db::codec::{finalize_hash_sha256, new_hash_sha256_prefixed};
use sha2::Sha256;
const PLAN_FINGERPRINT_PROFILE_TAG: &[u8] = b"planfp";
const CONTINUATION_SIGNATURE_PROFILE_TAG: &[u8] = b"contsig";
pub(in crate::db::query::fingerprint) fn new_plan_fingerprint_hasher() -> Sha256 {
new_hash_sha256_prefixed(PLAN_FINGERPRINT_PROFILE_TAG)
}
pub(in crate::db::query::fingerprint) fn new_continuation_signature_hasher() -> Sha256 {
new_hash_sha256_prefixed(CONTINUATION_SIGNATURE_PROFILE_TAG)
}
pub(in crate::db::query::fingerprint) fn finalize_sha256_digest(hasher: Sha256) -> [u8; 32] {
finalize_hash_sha256(hasher)
}