I published this on my Gitlab repo (click link to see full doc.):
Smart Contract Fingerprinting: A Method for Pattern Recognition and Analysis in Bitcoin Cash
Abstract. We present a novel method for analyzing and categorizing smart contracts on the Bitcoin Cash blockchain through Script bytecode fingerprinting.
Unlike traditional blockchain analysis that treats each unique bytecode as a distinct entity, our approach separates the executable logic from embedded data elements, enabling identification and grouping of functionally equivalent contracts.
By transforming sequences of data push operations into normalized count indicators, and applying a hash function to the resulting pattern, we create unique fingerprints that identify contract types regardless of their specific parameter values.
This method facilitates efficient contract classification, analysis, and discovery, while maintaining the ability to reconstruct and filter individual contract instances based on their parameters.
Keywords: Blockchain · Bitcoin Cash · Bitcoin Script · Chainanalysis.