Skip to content

Instantly share code, notes, and snippets.

View maltemoeser's full-sized avatar

Malte Möser maltemoeser

View GitHub Profile
import blocksci
from collections import Counter
@maltemoeser
maltemoeser / clustering.py
Created July 19, 2018 12:19
BlockSci clustering
# specify a change address heuristic (https://citp.github.io/BlockSci/reference/heuristics/change.html)
change_heuristic = blocksci.heuristics.change.legacy()
# current workaround to disable change the address heuristic
no_change_heuristic = blocksci.heuristics.change.legacy() - blocksci.heuristics.change.legacy()
# use the ClusterManager to cluster the blockchain using multi-input and legacy change
cm = blocksci.cluster.ClusterManager.create_clustering("/directory/where/cluster/files/can/be/stored", chain, change_heuristic)
# use the ClusterManager to cluster the blockchain using ONLY multi-input
307dfee5feb1f37dd1f174d48c0fa35293766fda

Keybase proof

I hereby claim:

  • I am maltemoeser on github.
  • I am maltemoeser (https://keybase.io/maltemoeser) on keybase.
  • I have a public key whose fingerprint is ADED BED8 E8E0 A356 EF5B AB09 40D9 14F3 CA93 59D6

To claim this, I am signing this object: