logo Netzschleuder network catalog, repository, and centrifuge

History of bitcoin

The changes to the source code of this entry in the repository, newest first, each with the differences it made to the entry's files. They are also listed on GitLab.

[entries] Add the date when each entry was added, and remove icon_hash by Tiago de Paula Peixoto beff7c9
The dates are those of the commits that first added the entries' files
(2020-08-11 for the entries of the initial commit); renamed entries keep
the date of their first name.

Changed: none
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index 40bf7bd..5c91ad6 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -31,7 +31,7 @@ The network has the following properties:
 tags = ['Economic', 'Cryptocurrency', 'Unweighted', 'Timestamps']
 url = 'https://dynamics.cs.washington.edu/data.html'
 citation = [('M. Fire and C. Guestrin, "The Rise and Fall of Network Stars." Preprint, arXiv:1706.06690 (2017)', 'https://arxiv.org/abs/1706.06690')]
-icon_hash = '5b313d48eb70bccf32ae3b2c'
+date_added = '2020-08-11'
 upstream_license = None
 upstream_prefix = 'https://dynamics.cs.washington.edu/nobackup/bitcoin'
 files = [(('bitcoin.tar.gz:./bitcoin/bitcoin.links.csv',
[entries] Prefix the properties in the descriptions with (Node), (Edge) or (Graph) by Tiago de Paula Peixoto bc3dbbd
The lists of properties at the end of the descriptions marked edge
properties with "Edge" but left node properties unmarked, or grouped
them in "Nodes: `a`, ...; `b`, ..." items, so the kind of a property
was often unclear. Every item now starts with (Node), (Edge) or (Graph),
followed by the property names, a colon and the explanation, one item
per property or group of properties; qualifications (kinds of nodes,
networks) follow the names in parentheses. Properties that were only
named got a short explanation, and a few items that named the wrong
kind of property were corrected.
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index 02a9667..40bf7bd 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -24,8 +24,10 @@ description = """A network of payment transactions between Bitcoin addresses, sp
 
 The network has the following properties:
 
-- Nodes: `id`, the numeric identifier of the address in the source data; `first_transaction`, the date and time of the first transaction of the address (format YYYYMMDDTHHMMSS).
-- Edges: `count`, the number of transactions between the two addresses; `min_date` and `max_date`, the date and time of the first and last of these transactions (format YYYYMMDDTHHMMSS)."""
+- (Node) `id`: the numeric identifier of the address in the source data.
+- (Node) `first_transaction`: the date and time of the first transaction of the address (format YYYYMMDDTHHMMSS).
+- (Edge) `count`: the number of transactions between the two addresses.
+- (Edge) `min_date` and `max_date`: the date and time of the first and last of these transactions (format YYYYMMDDTHHMMSS)."""
 tags = ['Economic', 'Cryptocurrency', 'Unweighted', 'Timestamps']
 url = 'https://dynamics.cs.washington.edu/data.html'
 citation = [('M. Fire and C. Guestrin, "The Rise and Fall of Network Stars." Preprint, arXiv:1706.06690 (2017)', 'https://arxiv.org/abs/1706.06690')]
[entries] Remove unneeded code from the entries by Tiago de Paula Peixoto 2c69f19
Unneeded "global files" statements, unused imports and variables,
f-strings without placeholders, duplicate keys in foodweb_little_rock
(keeping the order and the values used), and the second definition of
get_lines() in twitter_higgs. Nothing changes in the networks or
descriptions.

Changed: none
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index e5f3485..02a9667 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -43,7 +43,6 @@ def fetch_upstream(force=False):
 #@coerce_props()
 @annotate()
 def parse(alts=None):
-    global files
     name = __name__.split(".")[-1]
     for fnames, alt, fmt in files:
         if alts is not None and alt not in alts:
[entries] Fix parse bugs and improve descriptions and metadata by Tiago de Paula Peixoto 6bb6851
- parse fixes from the review of the descriptions, e.g. us_patents
  (directed), celegans_2019 (synapse direction), ecoli_transcription and
  yeast_transcription (regulator to target), bitcoin (direction, phantom
  node), ego_social (Google+ features and circles), scotus_majority,
  arxiv_authors and social_location (as in SNAP), caida_as, dnc, dom,
  mist, reuters and bibsonomy (names on the right nodes), uci_zoo
- every description now states explicitly what the nodes and edges
  represent; corrected titles, years, tags, citations and licences
- the "Hypergraph" tag is removed; very large entries are marked
  `huge = True` (see --skip-huge)
- ICON ids of partial duplicates added (hiv_transmission, congress_bills,
  openflights, dutch_school)
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index 11dbb74..e5f3485 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -20,13 +20,17 @@ from .. import *
 import csv
 
 title = "Bitcoin transactions (2009-2013)"
-description = """A network of Bitcoin transactions spanning January 2009 to April 2013. Nodes are public-key \"addresses\" at some time within the given period, and each edge is marked with the time (at a resolution of seconds) of the transaction.[^icon]
-[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
+description = """A network of payment transactions between Bitcoin addresses, spanning January 2009 to April 2013. The data were derived from the public Bitcoin blockchain in the Bitcoin Transaction Network Dataset published in 2013 by I. Brugere, and comprise over 37 million transactions between public-key "addresses". They were aggregated into a network by M. Fire and C. Guestrin for their study of the evolution of network stars. Nodes are addresses (identified only by numeric identifiers), and a directed edge points from one address to another if at least one payment was made from the first to the second; multiple transactions between the same pair of addresses are aggregated into a single edge.
+
+The network has the following properties:
+
+- Nodes: `id`, the numeric identifier of the address in the source data; `first_transaction`, the date and time of the first transaction of the address (format YYYYMMDDTHHMMSS).
+- Edges: `count`, the number of transactions between the two addresses; `min_date` and `max_date`, the date and time of the first and last of these transactions (format YYYYMMDDTHHMMSS)."""
 tags = ['Economic', 'Cryptocurrency', 'Unweighted', 'Timestamps']
 url = 'https://dynamics.cs.washington.edu/data.html'
 citation = [('M. Fire and C. Guestrin, "The Rise and Fall of Network Stars." Preprint, arXiv:1706.06690 (2017)', 'https://arxiv.org/abs/1706.06690')]
 icon_hash = '5b313d48eb70bccf32ae3b2c'
-ustream_license = None
+upstream_license = None
 upstream_prefix = 'https://dynamics.cs.washington.edu/nobackup/bitcoin'
 files = [(('bitcoin.tar.gz:./bitcoin/bitcoin.links.csv',
            'bitcoin.tar.gz:./bitcoin/bitcoin.vertices.csv'), None, None)]
@@ -51,22 +55,24 @@ def parse(alts=None):
             g.ep.max_date = max_date = g.new_ep("string")
             g.ep.min_date = min_date = g.new_ep("string")
 
+            # columns: dst_id, src_id, count, maxdate, mindate; the address
+            # ids run from 1 to N, and are mapped to the node indices 0 to N-1
             def get_lines():
                 reader = csv.reader(fs[0], delimiter=",", quotechar='"')
                 next(reader)
                 for row in reader:
-                    row[0] = int(row[0])
-                    row[1] = int(row[1])
-                    yield row
+                    yield [int(row[1]) - 1, int(row[0]) - 1] + row[2:]
 
             g.add_edge_list(get_lines(), hashed=False,
                             eprops=[count, max_date, min_date])
 
+            g.vp.id = g.new_vp("int")
+            g.vp.id.a = g.get_vertices() + 1
             g.vp.first_transaction = first = g.new_vp("string")
 
             reader = csv.reader(fs[1], delimiter=",", quotechar='"')
             next(reader)
             for row in reader:
-                v = int(row[0])
+                v = int(row[0]) - 1
                 first[v] = row[1]
         yield alt, g
Update copyright information by Tiago de Paula Peixoto 73a4f0d
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index 4ae9c74..11dbb74 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2020-2024 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2026 Tiago de Paula Peixoto <tiago@skewed.de>
 #
 # This program is free software: you can redistribute it and/or modify it under
 # the terms of the GNU Affero General Public License as published by the Free
Update copyright information by Tiago de Paula Peixoto 3d288ea
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index d8f7fae..4ae9c74 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2020-2023 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2024 Tiago de Paula Peixoto <tiago@skewed.de>
 #
 # This program is free software: you can redistribute it and/or modify it under
 # the terms of the GNU Affero General Public License as published by the Free
Update copyright information by Tiago de Paula Peixoto 8d005ae
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index 8cec0e9..d8f7fae 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2021 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2020-2023 Tiago de Paula Peixoto <tiago@skewed.de>
 #
 # This program is free software: you can redistribute it and/or modify it under
 # the terms of the GNU Affero General Public License as published by the Free
Update copyright info by Tiago de Paula Peixoto db2efcc
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index b381411..8cec0e9 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -1,7 +1,7 @@
 #! /usr/bin/env python
 # -*- coding: utf-8 -*-
 #
-# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
+# Copyright (C) 2021 Tiago de Paula Peixoto <tiago@skewed.de>
 #
 # This program is free software: you can redistribute it and/or modify it under
 # the terms of the GNU Affero General Public License as published by the Free
Change license from GPLv3 to AGPLv3 by Tiago de Paula Peixoto d754be5
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index e3d1e67..b381411 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -3,18 +3,18 @@
 #
 # Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
 #
-# This program is free software: you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation, either version 3 of the License, or
-# (at your option) any later version.
+# This program is free software: you can redistribute it and/or modify it under
+# the terms of the GNU Affero General Public License as published by the Free
+# Software Foundation, either version 3 of the License, or (at your option) any
+# later version.
 #
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-# GNU General Public License for more details.
+# This program is distributed in the hope that it will be useful, but WITHOUT
+# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+# FOR A PARTICULAR PURPOSE.  See the GNU Affero General Public License for more
+# details.
 #
-# You should have received a copy of the GNU General Public License
-# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+# You should have received a copy of the GNU Affero General Public License along
+# with this program.  If not, see <http://www.gnu.org/licenses/>.
 
 from .. import *
 import csv
Add explicit attribution to descriptions obtained from ICON by Tiago de Paula Peixoto 1645314
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
index 6a5b48e..e3d1e67 100644
--- a/entries/bitcoin/__init__.py
+++ b/entries/bitcoin/__init__.py
@@ -20,7 +20,8 @@ from .. import *
 import csv
 
 title = "Bitcoin transactions (2009-2013)"
-description = "A network of Bitcoin transactions spanning January 2009 to April 2013. Nodes are public-key \"addresses\" at some time within the given period, and each edge is marked with the time (at a resolution of seconds) of the transaction."
+description = """A network of Bitcoin transactions spanning January 2009 to April 2013. Nodes are public-key \"addresses\" at some time within the given period, and each edge is marked with the time (at a resolution of seconds) of the transaction.[^icon]
+[^icon]: Description obtained from the [ICON](https://icon.colorado.edu) project."""
 tags = ['Economic', 'Cryptocurrency', 'Unweighted', 'Timestamps']
 url = 'https://dynamics.cs.washington.edu/data.html'
 citation = [('M. Fire and C. Guestrin, "The Rise and Fall of Network Stars." Preprint, arXiv:1706.06690 (2017)', 'https://arxiv.org/abs/1706.06690')]
Initial commit by Tiago de Paula Peixoto cc85872
diff --git a/entries/bitcoin/__init__.py b/entries/bitcoin/__init__.py
new file mode 100644
index 0000000..6a5b48e
--- /dev/null
+++ b/entries/bitcoin/__init__.py
@@ -0,0 +1,71 @@
+#! /usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+# Copyright (C) 2020 Tiago de Paula Peixoto <tiago@skewed.de>
+#
+# This program is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program.  If not, see <http://www.gnu.org/licenses/>.
+
+from .. import *
+import csv
+
+title = "Bitcoin transactions (2009-2013)"
+description = "A network of Bitcoin transactions spanning January 2009 to April 2013. Nodes are public-key \"addresses\" at some time within the given period, and each edge is marked with the time (at a resolution of seconds) of the transaction."
+tags = ['Economic', 'Cryptocurrency', 'Unweighted', 'Timestamps']
+url = 'https://dynamics.cs.washington.edu/data.html'
+citation = [('M. Fire and C. Guestrin, "The Rise and Fall of Network Stars." Preprint, arXiv:1706.06690 (2017)', 'https://arxiv.org/abs/1706.06690')]
+icon_hash = '5b313d48eb70bccf32ae3b2c'
+ustream_license = None
+upstream_prefix = 'https://dynamics.cs.washington.edu/nobackup/bitcoin'
+files = [(('bitcoin.tar.gz:./bitcoin/bitcoin.links.csv',
+           'bitcoin.tar.gz:./bitcoin/bitcoin.vertices.csv'), None, None)]
+
+def fetch_upstream(force=False):
+    return fetch_upstream_files(__name__.split(".")[-1], upstream_prefix, files,
+                                force)
+
+@cache_network()
+#@coerce_props()
+@annotate()
+def parse(alts=None):
+    global files
+    name = __name__.split(".")[-1]
+    for fnames, alt, fmt in files:
+        if alts is not None and alt not in alts:
+            continue
+        with ExitStack() as stack:
+            fs = [stack.enter_context(open_upstream_file(name, fn, "r")) for fn in fnames]
+            g = Graph()
+            g.ep.count = count = g.new_ep("int")
+            g.ep.max_date = max_date = g.new_ep("string")
+            g.ep.min_date = min_date = g.new_ep("string")
+
+            def get_lines():
+                reader = csv.reader(fs[0], delimiter=",", quotechar='"')
+                next(reader)
+                for row in reader:
+                    row[0] = int(row[0])
+                    row[1] = int(row[1])
+                    yield row
+
+            g.add_edge_list(get_lines(), hashed=False,
+                            eprops=[count, max_date, min_date])
+
+            g.vp.first_transaction = first = g.new_vp("string")
+
+            reader = csv.reader(fs[1], delimiter=",", quotechar='"')
+            next(reader)
+            for row in reader:
+                v = int(row[0])
+                first[v] = row[1]
+        yield alt, g