pub struct PiracyDetector;Expand description
Piracy detector for analyzing datasets
Implementations§
Source§impl PiracyDetector
impl PiracyDetector
Sourcepub fn detect_watermark_presence(batches: &[RecordBatch]) -> DetectionResult
pub fn detect_watermark_presence(batches: &[RecordBatch]) -> DetectionResult
Detect if dataset likely contains watermarks (no seller key needed)
Uses statistical analysis of LSB autocorrelation to detect repeating patterns. Watermarks repeat every 256 bits, creating detectable autocorrelation.
Sourcepub fn analyze_entropy(batches: &[RecordBatch]) -> EntropyAnalysis
pub fn analyze_entropy(batches: &[RecordBatch]) -> EntropyAnalysis
Perform entropy analysis on numeric columns
Sourcepub fn generate_evidence(
batches: &[RecordBatch],
buyer_hash: &[u8; 32],
) -> Result<LegalEvidence>
pub fn generate_evidence( batches: &[RecordBatch], buyer_hash: &[u8; 32], ) -> Result<LegalEvidence>
Generate legal evidence package
Auto Trait Implementations§
impl Freeze for PiracyDetector
impl RefUnwindSafe for PiracyDetector
impl Send for PiracyDetector
impl Sync for PiracyDetector
impl Unpin for PiracyDetector
impl UnsafeUnpin for PiracyDetector
impl UnwindSafe for PiracyDetector
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.